Splash_screen: show full error message (#389)

* Splash_screen: show full error messge

* Fix splash not changing from connecting to error
This commit is contained in:
Alfredo Monclus
2022-01-03 03:29:49 -03:00
committed by GitHub
parent 9d3a6c7538
commit 9449f24b5f
3 changed files with 17 additions and 5 deletions

View File

@@ -689,14 +689,16 @@ class KlipperScreen(Gtk.Window):
if "FIRMWARE_RESTART" in msg:
self.printer_initializing(
_("Klipper has encountered an error.\nIssue a FIRMWARE_RESTART to attempt fixing the issue.")
+ "\n\n" + msg
)
elif "micro-controller" in msg:
self.printer_initializing(
_("Klipper has encountered an error with the micro-controller.\nPlease recompile and flash.")
+ "\n\n" + msg
)
else:
self.printer_initializing(
_("Klipper has encountered an error.")
_("Klipper has encountered an error.") + "\n\n" + msg
)
for panel in list(self.panels):