Skip to content
Snippets Groups Projects
Commit f3fb4a00 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

lrdp-v2: debug_image_v2: Make NotImplementedErrors less noisy

Currently, if cache dumping is not supported on a given target, we put
up a traceback and error out.  The traceback is ugly and not helpful.
Catch the NotImplementedError and print a nicer message.

Change-Id: I07d1e3a5b56b809135d41919bcc992931764a0af
parent 9c96bce4
No related branches found
No related tags found
No related merge requests found
......@@ -169,8 +169,11 @@ class DebugImage_v2():
cache_type = lookup_cache_type(ramdump.hw_id, client_id, version)
try:
cache_type.parse(start, end, ramdump, outfile)
except NotImplementedError:
print_out_str('Cache dumping not supported for %s on this target'
% client_name)
except:
print_out_str('!!! Exception while running {0}'.format(client_name))
print_out_str('!!! Unhandled exception while running {0}'.format(client_name))
print_out_exception()
outfile.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment