summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-07-24 07:15:02 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-07-24 07:15:02 -0700
commit74de0726558a3bfc3d71a6c5a477afc542afdf0c (patch)
tree3714604ed26a16df9315118b7029a5c2688af9dc
parent68e72f7fb9c53ddba3e62315bb5b8d7a59a9579f (diff)
downloadtxr-74de0726558a3bfc3d71a6c5a477afc542afdf0c.tar.gz
txr-74de0726558a3bfc3d71a6c5a477afc542afdf0c.tar.bz2
txr-74de0726558a3bfc3d71a6c5a477afc542afdf0c.zip
* eval.c (op_quote): Improved diagnostic.
-rw-r--r--ChangeLog4
-rw-r--r--eval.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 78d5637a..56f45633 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-07-24 Kaz Kylheku <kaz@kylheku.com>
+
+ * eval.c (op_quote): Improved diagnostic.
+
2015-07-23 Kaz Kylheku <kaz@kylheku.com>
Set up blank top_srcdir if building in source directory.
diff --git a/eval.c b/eval.c
index 6450501f..d3605da8 100644
--- a/eval.c
+++ b/eval.c
@@ -1114,7 +1114,7 @@ static val op_quote(val form, val env)
val d = cdr(form);
if (!consp(d) || cdr(d))
- eval_error(form, lit("bad quote syntax"), nao);
+ eval_error(form, lit("bad quote syntax: ~s"), form, nao);
return second(form);
}