groff-commit
[Top][All Lists]
Advanced

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

[groff] 04/13: src/roff/troff/input.cpp: Clarify diagnostic.


From: G. Branden Robinson
Subject: [groff] 04/13: src/roff/troff/input.cpp: Clarify diagnostic.
Date: Sat, 16 Apr 2022 04:37:31 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 2f0a721a3ecc2c8a8ff1edc8531f960fff546407
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Apr 14 11:18:10 2022 +1000

    src/roff/troff/input.cpp: Clarify diagnostic.
    
    * src/roff/troff/input.cpp (do_if_request): Clarify diagnostic; at the
      point it is thrown, we know not merely that we're in a conditional
      expression, but processing an output comparison operator.
---
 ChangeLog                | 7 +++++++
 src/roff/troff/input.cpp | 4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a38ed01f..b5a97cf2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-04-14  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/roff/troff/input.cpp (do_if_request): Clarify diagnostic;
+       at the point it is thrown, we know not merely that we're in a
+       conditional expression, but processing an output comparison
+       operator.
+
 2022-04-13  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * doc/groff.texi:
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 493d1633..36822033 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5829,8 +5829,8 @@ int do_if_request()
       for (;;) {
        tok.next();
        if (tok.is_newline() || tok.is_eof()) {
-         warning(WARN_DELIM, "missing closing delimiter in conditional"
-                 " expression (got %1)", tok.description());
+         warning(WARN_DELIM, "missing closing delimiter in output"
+                 " comparison operator (got %1)", tok.description());
          tok.next();
          curenv = oldenv;
          return 0;



reply via email to

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