mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-16 11:17:52 -06:00
heater: Use printer.command_error() instead of internal heater.error()
Use the more standard command_error to report invalid temperature requests. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
254789f4c5
commit
665323eb29
3 changed files with 6 additions and 12 deletions
|
@ -418,10 +418,7 @@ class GCodeParser:
|
|||
self.respond_error("Heater not configured")
|
||||
return
|
||||
print_time = self.toolhead.get_last_move_time()
|
||||
try:
|
||||
heater.set_temp(print_time, temp)
|
||||
except heater.error as e:
|
||||
raise self.error(str(e))
|
||||
heater.set_temp(print_time, temp)
|
||||
if wait and temp:
|
||||
self.bg_temp(heater)
|
||||
# G-Code special command handlers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue