summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2017-12-01 13:44:37 -0500
committerOwen Jacobson <owen@grimoire.ca>2017-12-01 13:44:37 -0500
commitea660f312b601d623dc4ba738479b51150390ab3 (patch)
tree5563a6869b17cd2e0bd553222e67c9f123772640
parent2c13fd010ad8655b2e97cf2b20d641302e8c8343 (diff)
Correctly report define errors
-rw-r--r--actinide/evaluator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/actinide/evaluator.py b/actinide/evaluator.py
index 614acbf..68b4dd2 100644
--- a/actinide/evaluator.py
+++ b/actinide/evaluator.py
@@ -217,7 +217,7 @@ def define(value, symbols, continuation, bind):
symb, expr = t.flatten(value)
if not t.symbol_p(symb):
- raise RuntimeError("Argument to define not a symbol: {t.display(symb)}")
+ raise RuntimeError(f"Argument to define not a symbol: {t.display(symb, symbols)}")
bind_cont = bind(symb, continuation)
eval_cont = eval(expr, symbols, bind_cont)