Commit ee4959b8 authored by Sébastien Luttringer's avatar Sébastien Luttringer
Browse files

Also print traceback for non ISException in debug

parent 893af8f0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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)