From: Philippe Proulx Date: Fri, 15 May 2020 19:29:46 +0000 (-0400) Subject: cli: print traceback for unknown exceptions X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=f74236f8043c89741dbcbc736f39985035b8a444;p=deliverable%2Fbarectf.git cli: print traceback for unknown exceptions Signed-off-by: Philippe Proulx --- diff --git a/barectf/cli.py b/barectf/cli.py index 8b12f15..8add0c8 100644 --- a/barectf/cli.py +++ b/barectf/cli.py @@ -118,6 +118,9 @@ def run(): except barectf.config.ConfigError as e: _pconfig_error(e) except Exception as e: + import traceback + + traceback.print_exc() _perror('unknown exception: {}'.format(e)) # replace prefix if needed