gbranden pushed a commit to branch master
in repository groff.

commit 91afce8b92155951d94a5c357bf15f42f37f6e5e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Nov 16 14:33:56 2026 -0600

    src/preproc/pic/lex.cpp: Revise error diagnostics.
    
    * src/preproc/pic/lex.cpp (do_copy, copy_file_thru): Favor "cannot" over
      "can't".
---
 ChangeLog               | 5 +++++
 src/preproc/pic/lex.cpp | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0ca9cf044..278309aa6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-11-16  G. Branden Robinson <[email protected]>
+
+       * src/preproc/pic/lex.cpp (do_copy, copy_file_thru): Revise
+       error diagnostic; favor "cannot" over "can't".
+
 2026-11-16  G. Branden Robinson <[email protected]>
 
        * src/preproc/pic/lex.cpp (yylex): Fix code style nit.  Return
diff --git a/src/preproc/pic/lex.cpp b/src/preproc/pic/lex.cpp
index 9533303a2..c03990a1f 100644
--- a/src/preproc/pic/lex.cpp
+++ b/src/preproc/pic/lex.cpp
@@ -1555,7 +1555,7 @@ void do_copy(const char *filename)
   errno = 0;
   FILE *fp = fopen(filename, "r");
   if (0 /* nullptr */ == fp) {
-    lex_error("can't open '%1': %2", filename, strerror(errno));
+    lex_error("cannot open '%1': %2", filename, strerror(errno));
     return;
   }
   input_stack::push(new file_input(fp, filename));
@@ -1803,7 +1803,7 @@ void copy_file_thru(const char *filename, const char 
*body, const char *until)
   errno = 0;
   FILE *fp = fopen(filename, "r");
   if (0 /* nullptr */ == fp) {
-    lex_error("can't open '%1': %2", filename, strerror(errno));
+    lex_error("cannot open '%1': %2", filename, strerror(errno));
     return;
   }
   input *in = new copy_file_thru_input(new simple_file_input(fp, filename),

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

Reply via email to