From 21597f9b0749eeb0e291bf1b9de1fed06037bfcf Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 13 Oct 2018 17:20:21 -0400 Subject: [PATCH] gcode: Report state message after any error in a STATUS response Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/gcode.py b/klippy/gcode.py index a1b9c419..bae0c528 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -695,7 +695,7 @@ class GCodeParser: self._respond_state("Ready") return msg = self.printer.get_state_message() - self._respond_state("Not ready") + msg = msg.rstrip() + "\nKlipper state: Not ready" self.respond_error(msg) cmd_HELP_when_not_ready = True def cmd_HELP(self, params):