mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 10:46:40 +00:00
fix error messages that only say a single number (#843)
This commit is contained in:
@@ -317,13 +317,8 @@ class WorkerThread(QThread):
|
|||||||
GUI.progress.content = ''
|
GUI.progress.content = ''
|
||||||
self.errors = True
|
self.errors = True
|
||||||
_, _, traceback = sys.exc_info()
|
_, _, traceback = sys.exc_info()
|
||||||
if len(err.args) == 1:
|
MW.showDialog.emit("Error during conversion %s:\n\n%s\n\nTraceback:\n%s"
|
||||||
MW.showDialog.emit("Error during conversion %s:\n\n%s\n\nTraceback:\n%s"
|
% (jobargv[-1], str(err), sanitizeTrace(traceback)), 'error')
|
||||||
% (jobargv[-1], str(err), sanitizeTrace(traceback)), 'error')
|
|
||||||
else:
|
|
||||||
MW.showDialog.emit("Error during conversion %s:\n\n%s\n\nTraceback:\n%s"
|
|
||||||
% (jobargv[-1], str(err.args[0]), err.args[1]), 'error')
|
|
||||||
GUI.sentry.extra_context({'realTraceback': err.args[1]})
|
|
||||||
if ' is corrupted.' not in str(err):
|
if ' is corrupted.' not in str(err):
|
||||||
GUI.sentry.captureException()
|
GUI.sentry.captureException()
|
||||||
MW.addMessage.emit('Error during conversion! Please consult '
|
MW.addMessage.emit('Error during conversion! Please consult '
|
||||||
|
|||||||
Reference in New Issue
Block a user