aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--klippy/extras/gcode_macro.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/gcode_macro.py b/klippy/extras/gcode_macro.py
index f244b344..3aa5087b 100644
--- a/klippy/extras/gcode_macro.py
+++ b/klippy/extras/gcode_macro.py
@@ -178,8 +178,8 @@ class GCodeMacro:
literal = ast.literal_eval(value)
json.dumps(literal, separators=(',', ':'))
except (SyntaxError, TypeError, ValueError) as e:
- raise gcmd.error("Unable to parse '%s' as a literal: %s" %
- (value, e))
+ raise gcmd.error("Unable to parse '%s' as a literal: %s in '%s'" %
+ (value, e, gcmd.get_commandline()))
v = dict(self.variables)
v[variable] = literal
self.variables = v