diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-08-24 05:48:32 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-08-24 05:48:32 -0700 |
commit | 70f541e4a94c708607f75a4a1e4517cff397d035 (patch) | |
tree | 90d0ff4a5d3b47d7c50c29d714e158717321a208 /eval.c | |
parent | 314b4d350cb44557fa4e90b93b489ea9611a1241 (diff) | |
download | txr-70f541e4a94c708607f75a4a1e4517cff397d035.tar.gz txr-70f541e4a94c708607f75a4a1e4517cff397d035.tar.bz2 txr-70f541e4a94c708607f75a4a1e4517cff397d035.zip |
Misleading error message in defvarl and defsymacro.
* eval.c (op_defvarl, op_defsymacro): Report correct
symbol in not-bindable-symbol error message rather
than reporting as let.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1543,7 +1543,7 @@ static val op_defvarl(val form, val env) val sym = first(args); if (!bindable(sym)) - eval_error(form, lit("let: ~s is not a bindable symbol"), sym, nao); + eval_error(form, lit("defvarl: ~s is not a bindable symbol"), sym, nao); { if (!gethash(top_vb, sym)) { @@ -1564,7 +1564,7 @@ static val op_defsymacro(val form, val env) (void) env; if (!bindable(sym)) - eval_error(form, lit("let: ~s is not a bindable symbol"), sym, nao); + eval_error(form, lit("defsymacro: ~s is not a bindable symbol"), sym, nao); remhash(top_vb, sym); if (!opt_compat || opt_compat > 143) |