cli: print traceback for unknown exceptions
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 15 May 2020 19:29:46 +0000 (15:29 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 22 May 2020 16:30:18 +0000 (12:30 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/cli.py

index 8b12f1522d0471c1d9b9dff421d441e1b22ad530..8add0c8381f6b8d6c450bc1658a5306b872f2325 100644 (file)
@@ -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
This page took 0.023243 seconds and 4 git commands to generate.