Commit daacc1b9 authored by Nicolas Chevillot's avatar Nicolas Chevillot

Added traceback

parent c4b5fced
...@@ -187,6 +187,12 @@ def _get_parser(): ...@@ -187,6 +187,12 @@ def _get_parser():
dest="sufix_code", dest="sufix_code",
default="", default="",
help="Python code executed after every Manifest.py") help="Python code executed after every Manifest.py")
parser.add_argument(
"--full-error",
default=False,
action="store_true",
dest="full_error",
help="display full error log with traceback")
return parser return parser
...@@ -204,4 +210,12 @@ def _get_options(sys_aux, parser): ...@@ -204,4 +210,12 @@ def _get_options(sys_aux, parser):
if __name__ == "__main__": if __name__ == "__main__":
main() try:
main()
except Exception as e:
import traceback
logging.error(e)
if global_mod.options.full_error:
logging.error("Trace:")
traceback.print_exc()
quit(2)
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