From 0bb51d8600ea8b9f6cda97071a586a4f1ee5837e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 9 May 2015 10:44:02 -0700 Subject: Improve error message related to splice misuse. * eval.c (expand_qquote): Corrected awkward error message text which was saying that a splice "cannot occur as an atom". --- eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 6462cd71..c4b6bcbb 100644 --- a/eval.c +++ b/eval.c @@ -2151,9 +2151,9 @@ static val expand_qquote(val qquoted_form, val menv, if (sym == spl) { val error_msg = if3(spl == sys_splice_s, - lit("the splice ,*~s cannot occur as an atom " + lit("the splice ,*~s cannot occur outside of a list " "or in the dotted position of a list"), - lit("(splice ~s) cannot occur as an atom " + lit("(splice ~s) cannot occur outside of a list " "or in the dotted position of a list")); eval_error(qquoted_form, error_msg, second(qquoted_form), nao); -- cgit v1.2.3