gbranden pushed a commit to branch master
in repository groff.

commit 68044217ff549f3a444842bf7cbe7326066da4a2
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Jul 16 10:26:53 2026 -0500

    [pre-grohtml]: Make crappy suggestion less crappy.
    
    * src/preproc/html/pre-html.cpp (main): Make crappy suggestion in
      diagnostic reporting pre-grohtml(1) failure a little less crappy.
      Prompted by Savannah #68525.
---
 ChangeLog                     | 6 ++++++
 src/preproc/html/pre-html.cpp | 5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7b5182038..8e056b694 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-07-16  G. Branden Robinson <[email protected]>
+
+       * src/preproc/html/pre-html.cpp (main): Make crappy suggestion
+       in diagnostic reporting pre-grohtml(1) failure a little less
+       crappy.  Prompted by Savannah #68525.
+
 2026-07-14  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/env.cpp
diff --git a/src/preproc/html/pre-html.cpp b/src/preproc/html/pre-html.cpp
index 5afcab0da..7b6993db2 100644
--- a/src/preproc/html/pre-html.cpp
+++ b/src/preproc/html/pre-html.cpp
@@ -1863,8 +1863,9 @@ int main(int argc, char **argv)
   else
     if (WEXITSTATUS(wstatus) != 0)
       // XXX: This is a crappy suggestion.  See Savannah #62673.
-      fatal("'%1' exited with status %2; re-run with a different output"
-           " driver to see diagnostic messages", argv[0],
+      fatal("'%1' exited with status %2; re-run groff with "
+           IMAGE_DEVICE " (and omit any '-P' postprocessor options)"
+           " to see diagnostic messages", argv[0],
            WEXITSTATUS(wstatus));
   exit(EXIT_SUCCESS);
 }

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

Reply via email to