gbranden pushed a commit to branch master
in repository groff.

commit 2311c127f8791f19da011e28c9c062ebfc15ff86
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Nov 20 15:38:15 2026 -0600

    [troff]: Recast error diagnostic.
    
    * src/roff/troff/input.cpp (activate_color): Recast error diagnostic
      when input attempts to configure command-line- disabled color output.
---
 ChangeLog                | 6 ++++++
 src/roff/troff/input.cpp | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 7afdc7193..d29f495d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-11-20  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (activate_color): Recast error
+       diagnostic when input attempts to configure command-line-
+       disabled color output.
+
 2026-11-20  G. Branden Robinson <[email protected]>
 
        * src/preproc/tbl/main.cpp (describe_character): Zero the
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index c84dee962..f3af9a7e9 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -1703,7 +1703,7 @@ static void activate_color() // .color
   else
     is_color_desired = true;
   if (is_color_desired && !permit_color_output) {
-    error("color output disabled via command line");
+    error("color output was disabled by command-line '-c' option");
     is_color_desired = false;
   }
   want_color_output = is_color_desired;

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

Reply via email to