summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-12-06 18:26:17 +0000
committerwlemb <wlemb>2001-12-06 18:26:17 +0000
commit3127a529fe425b9a2b21765cba38f49841449eec (patch)
tree3ac0144bd9028ada3c819a8d89b933fa4670a528
parent18b836fb33487d2277c0f9b4836ecd94d5a826d1 (diff)
downloadgroff-3127a529fe425b9a2b21765cba38f49841449eec.tar.gz
* src/preproc/eqn/main.cc (inline_equation): Improve error message.
-rw-r--r--ChangeLog4
-rw-r--r--src/preproc/eqn/main.cc3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 37fe4e9a..1a392a95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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];
}