gbranden pushed a commit to branch master
in repository groff.
commit e897451e9ada531a622b3e75c94d125bbe7bb18f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 1 11:03:17 2020 +1100
src/roff/troff/input.cpp: Improve diagnostic.
* src/roff/troff/input.cpp (read_size_next_byte): Improve diagnostic
message; it is not always a digit we will be expecting when called.
---
ChangeLog | 6 ++++++
src/roff/troff/input.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index e7f9743..a1cbaa6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2020-04-01 G. Branden Robinson <[email protected]>
+ * src/roff/troff/input.cpp (read_size_next_byte): Improve
+ diagnostic message; it is not always a digit we will be
+ expecting when called.
+
+2020-04-01 G. Branden Robinson <[email protected]>
+
Align diagnostic message format.
* src/libs/libgroff/error.cpp (do_error_with_file_and_line):
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index ba3842b..08e1b64 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5044,7 +5044,7 @@ static int read_size_next_byte(void)
int eof = tok.eof();
if (eof || tok.newline())
error_with_file_and_line(saved_filename, saved_lineno,
- "expected digit in point size; got %1",
+ "unexpected %1 in point-size escape",
eof ? "end of file" : "newline");
return tok.ch();
}
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit