From ea660f312b601d623dc4ba738479b51150390ab3 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Fri, 1 Dec 2017 13:44:37 -0500 Subject: Correctly report define errors --- actinide/evaluator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3