gbranden pushed a commit to branch master
in repository groff.
commit 555f610f347212432e77e2dbab80dc56a0d9cb83
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Sep 28 17:29:07 2022 -0500
[troff]: Revise `ec` request error message.
* src/roff/troff/input.cpp (set_escape_char): Recast error message to
describe attempted operation and tell the user what we're doing about
being instructed to use an invalid escape character.
---
ChangeLog | 7 +++++++
src/roff/troff/input.cpp | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index fa561bb46..89bc6243f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-09-28 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (set_escape_char): Recast error
+ message to describe attempted operation and tell the user what
+ we're doing about being instructed to use an invalid escape
+ character.
+
2022-09-28 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (read_size): Be more helpful to
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 0597f7ade..72eee40bd 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -165,7 +165,7 @@ void set_escape_char()
{
if (has_arg()) {
if (tok.ch() == 0) {
- error("invalid escape character");
+ error("cannot select invalid escape character; using '\\'");
escape_char = '\\';
}
else
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit