earlyinit: Only display exception if there was one

This commit is contained in:
Florian Bruhin 2016-09-07 17:33:07 +02:00
parent 4d91ccfea5
commit d7f9e4735e

View File

@ -101,6 +101,7 @@ def _die(message, exception=None):
print(message, file=sys.stderr)
print("Exiting because of --no-err-windows.", file=sys.stderr)
else:
if exception is not None:
message += '<br/><br/><br/><b>Error:</b><br/>{}'.format(exception)
msgbox = QMessageBox(QMessageBox.Critical, "qutebrowser: Fatal error!",
message)