From d94baacd9a497d1f0665a80ed23d821aa6f59b64 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Tue, 5 Apr 2011 23:46:31 +0900 Subject: [PATCH] improving "missing trailing )" message to include starting line --- sexp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sexp.c b/sexp.c index 08f958bf..37829ba8 100644 --- a/sexp.c +++ b/sexp.c @@ -1842,7 +1842,8 @@ sexp sexp_read_raw (sexp ctx, sexp in) { } else if (tmp == SEXP_CLOSE) { res = (sexp_pairp(res) ? sexp_nreverse(ctx, res) : res); } else { - res = sexp_read_error(ctx, "missing trailing ')'", SEXP_NULL, in); + res = sexp_read_error(ctx, "missing trailing ')' started on line", + sexp_make_fixnum(line), in); } } if ((line >= 0) && sexp_pairp(res)) {