groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 14/38: [troff]: Revise `ec` request error message.


From: G. Branden Robinson
Subject: [groff] 14/38: [troff]: Revise `ec` request error message.
Date: Mon, 3 Oct 2022 01:42:56 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 555f610f347212432e77e2dbab80dc56a0d9cb83
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
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 <g.branden.robinson@gmail.com>
+
+       * 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 <g.branden.robinson@gmail.com>
 
        * 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]