From 1ba62a6514d1c65dfcc358bbeb0e4396f887f540 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Mon, 16 Apr 2012 20:41:58 +0900 Subject: [PATCH] Friendlier error message on # at EOF. --- sexp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sexp.c b/sexp.c index 0244d66f..c067b301 100644 --- a/sexp.c +++ b/sexp.c @@ -2562,8 +2562,8 @@ sexp sexp_read_raw (sexp ctx, sexp in) { } break; default: - res = sexp_read_error(ctx, "invalid # syntax", - sexp_make_character(c1), in); + res = sexp_read_error(ctx, "invalid char following '#'", + c1 == EOF ? SEXP_EOF : sexp_make_character(c1), in); } break; case '.':