Commit ee4959b8 authored by Seblu's avatar Seblu

Also print traceback for non ISException in debug

parent 893af8f0
......@@ -109,6 +109,10 @@ def error(message=None, exception=None, quit=True, fd=sys.stderr, endl=os.linese
# print traceback in debug mode
if installsystems.verbosity > 1 and isinstance(exception, ISException):
exception.print_tb(fd)
elif installsystems.verbosity > 1:
out("#l##B#", fd=fd, endl="")
traceback.print_exc(file=fd)
out("#R#", fd=fd, endl="")
if quit:
exit(42)
......
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