grml2usb: print backtrace when --verbose is given
authorChris Hofstaedtler <zeha@debian.org>
Sat, 31 Aug 2019 13:11:30 +0000 (13:11 +0000)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Sun, 13 Oct 2019 12:30:19 +0000 (14:30 +0200)
Useful for debugging.

grml2usb

index f15dbf6..9c6c8c5 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -1932,6 +1932,8 @@ def main():
 
     except Exception as error:
         logging.critical("Fatal: %s", str(error))
+        if options.verbose:
+            logging.exception("Exception:")
         sys.exit(1)