diff options
author | wlemb <wlemb> | 2001-12-06 18:26:17 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2001-12-06 18:26:17 +0000 |
commit | 3127a529fe425b9a2b21765cba38f49841449eec (patch) | |
tree | 3ac0144bd9028ada3c819a8d89b933fa4670a528 | |
parent | 18b836fb33487d2277c0f9b4836ecd94d5a826d1 (diff) | |
download | groff-3127a529fe425b9a2b21765cba38f49841449eec.tar.gz |
* src/preproc/eqn/main.cc (inline_equation): Improve error message.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/preproc/eqn/main.cc | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk> + + * src/preproc/eqn/main.cc (inline_equation): Improve error message. + 2001-12-05 Werner LEMBERG <wl@gnu.org> * src/roff/troff/input.cc (get_delim_file_name): Removed since no diff --git a/src/preproc/eqn/main.cc b/src/preproc/eqn/main.cc index f53ffa38..d4a1884d 100644 --- a/src/preproc/eqn/main.cc +++ b/src/preproc/eqn/main.cc @@ -190,7 +190,8 @@ static int inline_equation(FILE *fp, string &linebuf, string &str) } str += ptr; if (!read_line(fp, &linebuf)) - fatal("end of file before `%1'", end_delim); + fatal("unterminated %1' at line %2, looking for %3'", + start_delim, start_lineno, end_delim); linebuf += '\0'; ptr = &linebuf[0]; } |