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

lrdp-v2: improve error message when !vmlinux && !autodumpdir

Currently, if the user doesn't specify a vmlinux image or an
autodumpdir (like when running ramparse.py with absolutely no arguments)
they get a big ugly python stacktrace and no helpful error message. Fix
this.

Change-Id: I2d5aaaae5c8afd651ef48cfbd8f974227c2032fe
parent 9de5aebd
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,10 @@ if __name__ == '__main__':
sys.exit(1)
if options.vmlinux is None:
if options.autodump is None:
print_out_str("No vmlinux or autodump dir given. I can't proceed!")
parser.print_usage()
sys.exit(1)
autovm = os.path.join(options.autodump, 'vmlinux')
if os.path.isfile(autovm):
options.vmlinux = autovm
......
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