diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-02-03 10:15:02 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-02-03 10:15:02 -0800 |
commit | f3708a552407c52cd4676b10649ac0d20c8544fd (patch) | |
tree | 01305dd5d1fdfbeb5a0227cb533510ddcebfd12c | |
parent | 5156121fbb22725907e248daca1b780eeac1ab82 (diff) | |
download | txr-f3708a552407c52cd4676b10649ac0d20c8544fd.tar.gz txr-f3708a552407c52cd4676b10649ac0d20c8544fd.tar.bz2 txr-f3708a552407c52cd4676b10649ac0d20c8544fd.zip |
More accurate error wording from Lisp-1 operators.
* eval.c (op_lisp1_setq, op_lisp1_value): If a Lisp-1 binding
is not found, this is because it is neither a function nor
variable, not because it is not a variable. The error message
now reflects this.
-rw-r--r-- | eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2064,7 +2064,7 @@ static val op_lisp1_setq(val form, val env) val binding = lookup_sym_lisp1(env, var); if (nilp(binding)) - eval_error(form, lit("unbound variable ~s"), var, nao); + eval_error(form, lit("unbound variable/function ~s"), var, nao); return sys_rplacd(binding, eval(newval, env, form)); } @@ -2101,7 +2101,7 @@ static val op_lisp1_value(val form, val env) } else { val binding = lookup_sym_lisp1(env, arg); if (nilp(binding)) - eval_error(form, lit("unbound variable ~s"), arg, nao); + eval_error(form, lit("unbound variable/function ~s"), arg, nao); return cdr(binding); } } |