mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
improving "missing trailing )" message to include starting line
This commit is contained in:
parent
dac4e0f4e9
commit
d94baacd9a
1 changed files with 2 additions and 1 deletions
3
sexp.c
3
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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue