Commit dc227676 authored by Paweł Szostek's avatar Paweł Szostek

More verbose error printing

parent 2fd07575
......@@ -131,6 +131,7 @@ use 0 for current version""", metavar="ISE")
}
sth_chosen = False
import traceback
for option, function in options_kernel_mapping.items():
try:
is_set = getattr(options,option)
......@@ -138,8 +139,9 @@ use 0 for current version""", metavar="ISE")
getattr(kernel, function)()
sth_chosen = True
except Exception,e :
p.echo("Oooops! We've got an error. Here is the appropriate info:\n")
p.print_version()
print e
traceback.print_exc()
if not sth_chosen:
p.rawprint("No option selected. Running automatic flow")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment