trimed exception popup message text quite a bit. Fixes QubesOS/qubes-issues#1394
This commit is contained in:
parent
c1552af281
commit
e1685a18f1
@ -1985,13 +1985,9 @@ def handle_exception(exc_type, exc_value, exc_traceback):
|
|||||||
|
|
||||||
filename, line, dummy, dummy = traceback.extract_tb(exc_traceback).pop()
|
filename, line, dummy, dummy = traceback.extract_tb(exc_traceback).pop()
|
||||||
filename = os.path.basename(filename)
|
filename = os.path.basename(filename)
|
||||||
error = "%s: %s" % (exc_type.__name__, exc_value)
|
|
||||||
message = (
|
message = (
|
||||||
"Whoops. A critical error has occured. This is most likely a bug "
|
"<b>%s</b>" % exc_value +
|
||||||
"in Qubes Manager.<br><br>"
|
"<br><br><i>This is most likely a bug in the Qubes Manager</i>"
|
||||||
"<b><i>%s</i></b>" % error +
|
|
||||||
"<br/>at line <b>%d</b><br/>of file %s.<br/><br/>"
|
|
||||||
% (line, filename)
|
|
||||||
)
|
)
|
||||||
is_gui_thread = threading.currentThread().getName() == "QtMainThread"
|
is_gui_thread = threading.currentThread().getName() == "QtMainThread"
|
||||||
strace = ""
|
strace = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user