mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 20:05:56 +08:00
Rename 'exception' to 'error'
Error is a less technical term, so it's more user friendly.
This commit is contained in:
parent
6e6dc493f1
commit
9ea0119011
@ -59,7 +59,7 @@ class CrashHandler:
|
|||||||
self.data = dict()
|
self.data = dict()
|
||||||
self.data["time_stamp"] = time.time()
|
self.data["time_stamp"] = time.time()
|
||||||
|
|
||||||
Logger.log("c", "An uncaught exception has occurred!")
|
Logger.log("c", "An uncaught error has occurred!")
|
||||||
for line in traceback.format_exception(exception_type, value, tb):
|
for line in traceback.format_exception(exception_type, value, tb):
|
||||||
for part in line.rstrip("\n").split("\n"):
|
for part in line.rstrip("\n").split("\n"):
|
||||||
Logger.log("c", part)
|
Logger.log("c", part)
|
||||||
@ -90,7 +90,7 @@ class CrashHandler:
|
|||||||
|
|
||||||
def _messageWidget(self):
|
def _messageWidget(self):
|
||||||
label = QLabel()
|
label = QLabel()
|
||||||
label.setText(catalog.i18nc("@label crash message", """<p><b>A fatal exception has occurred. Please send us this Crash Report to fix the problem</p></b>
|
label.setText(catalog.i18nc("@label crash message", """<p><b>A fatal error has occurred. Please send us this Crash Report to fix the problem</p></b>
|
||||||
<p>Please use the "Send report" button to post a bug report automatically to our servers</p>
|
<p>Please use the "Send report" button to post a bug report automatically to our servers</p>
|
||||||
"""))
|
"""))
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ class CrashHandler:
|
|||||||
|
|
||||||
def _exceptionInfoWidget(self):
|
def _exceptionInfoWidget(self):
|
||||||
group = QGroupBox()
|
group = QGroupBox()
|
||||||
group.setTitle(catalog.i18nc("@title:groupbox", "Exception traceback"))
|
group.setTitle(catalog.i18nc("@title:groupbox", "Error traceback"))
|
||||||
layout = QVBoxLayout()
|
layout = QVBoxLayout()
|
||||||
|
|
||||||
text_area = QTextEdit()
|
text_area = QTextEdit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user