Skip to content

Commit

Permalink
globals: Warn on removed options, rather than abort
Browse files Browse the repository at this point in the history
  • Loading branch information
jschuh committed Jun 13, 2023
1 parent 1b67a44 commit de78289
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions globals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ gcode:
"virtual_sdcard" :
("on_error_gcode", "CANCEL_PRINT")
} %}
{% set custom_error = {
{% set warn_removed = {
"start_extruder_set_target_before_level" :
"The start_extruder_set_target_before_level option has been removed. "
"Use the start_extruder_probing_temp option instead to set a fixed "
Expand Down Expand Up @@ -202,8 +202,8 @@ gcode:
# Force overrides to use the original types in _KM_GLOBALS.
{% for k in options %}
{% if k not in km %}
{% if k in custom_error %}
{% set dummy = output.append(custom_error[k]) %}
{% if k in warn_removed %}
{action_respond_info(warn_removed[k])}
{% else %}
{% set dummy = output.append("%s is not valid for _KM_OPTIONS." |
format(k)) %}
Expand Down

0 comments on commit de78289

Please sign in to comment.