gbranden pushed a commit to branch master
in repository groff.

commit 88a2fcfa13667b3cc9cd5a474ae715a00ef42b8d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Jul 11 19:56:13 2026 -0500

    [troff]: Recast error diagnostic.
    
    * src/roff/troff/number.cpp (is_valid_term): Recast error diagnostic
      message for clarity in cases like "echo .cflags X | groff".
---
 ChangeLog                 | 6 ++++++
 src/roff/troff/number.cpp | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index b628b8a33..63dce74a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-07-11  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/number.cpp (is_valid_term): Recast error
+       diagnostic message for clarity in cases like "echo .cflags X |
+       groff".
+
 2026-07-11  G. Branden Robinson <[email protected]>
 
        [troff]: Fix Savannah #68511, recovering from a botched
diff --git a/src/roff/troff/number.cpp b/src/roff/troff/number.cpp
index a48638b8f..540b296dc 100644
--- a/src/roff/troff/number.cpp
+++ b/src/roff/troff/number.cpp
@@ -532,7 +532,7 @@ static bool is_valid_term(units *u,
     *u = 0;
     return !is_mandatory;
   default:
-    error("ignoring invalid numeric expression containing %1",
+    error("numeric expression containing %1 is invalid",
          tok.description());
     return false;
   }

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to