aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index d3932322..ce3c3ffe 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -191,7 +191,11 @@ class GCodeParser:
def set_temp(self, heater, params, wait=False):
print_time = self.toolhead.get_last_move_time()
temp = float(params.get('S', '0'))
- heater.set_temp(print_time, temp)
+ try:
+ heater.set_temp(print_time, temp)
+ except heater.error, e:
+ self.respond_error(str(e))
+ return
if wait:
self.bg_temp(heater)
# Individual command handlers