diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-01-11 12:36:09 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-01-11 12:41:55 -0500 |
commit | f0b7d6d67a8e9ab3625811192a278989f75ba8ad (patch) | |
tree | 3a3ddf0703105e3a85dcc65ce871fb9e51cc1a05 /klippy | |
parent | 8a6125c81c20aaa5e2fc38ac4981a00e1b21eeef (diff) | |
download | kutter-f0b7d6d67a8e9ab3625811192a278989f75ba8ad.tar.gz kutter-f0b7d6d67a8e9ab3625811192a278989f75ba8ad.tar.xz kutter-f0b7d6d67a8e9ab3625811192a278989f75ba8ad.zip |
klippy: Report the first error generated
Only update the status message with the first error report.
Subsequent errors are often the result of the first error and
reporting the last error can be misleading.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/klippy.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py index d11959e2..b5ce166f 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -65,7 +65,8 @@ class Printer: def get_state_message(self): return self.state_message def _set_state(self, msg): - self.state_message = msg + if self.state_message in (message_ready, message_startup): + self.state_message = msg if (msg != message_ready and self.start_args.get('debuginput') is not None): self.request_exit('error_exit') |