gbranden pushed a commit to branch master
in repository groff.
commit 89c79b3f55a8438a04c35ad29e3e95143b325d2c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jun 3 20:54:12 2025 -0500
[grotty]: Clarify error diagnostic.
* src/devices/grotty/tty.cpp (tty_printer::color_to_idx): Clarify error
diagnostic: the problem isn't that a color is unrecognized, but that
it is unsupported by the device.
---
ChangeLog | 6 ++++++
src/devices/grotty/tty.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index b0415e023..15fc52b42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-06-03 G. Branden Robinson <[email protected]>
+
+ * src/devices/grotty/tty.cpp (tty_printer::color_to_idx):
+ Clarify error diagnostic: the problem isn't that a color is
+ unrecognized, but that it is unsupported by the device.
+
2025-06-03 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (token::next): Drop unnecessary
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index ffe5d329b..64e378385 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -338,7 +338,7 @@ schar tty_printer::color_to_idx(color *col)
schar idx;
if (!tty_color(r, g, b, &idx)) {
char *s = col->print_color();
- error("unrecognized color '%1' mapped to default", s);
+ error("unsupported color '%1' mapped to default", s);
delete[] s;
}
return idx;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit