gbranden pushed a commit to branch master
in repository groff.
commit 6154b19609fed04aaf6072079aea3b8ccf2f5267
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Jun 26 22:45:29 2025 -0500
[preconv]: Tweak diagnostic message.
* src/preproc/preconv/preconv.cpp (do_file): Drop extra layer of quoting
of file name, and migrate to "cannot" from "unable to" phrasing.
Fixes:
preconv: error: unable to open ''doc/GMPfront.t'': No such file or directory
---
ChangeLog | 6 ++++++
src/preproc/preconv/preconv.cpp | 3 +--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 09429c14a..57c407f83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-06-26 G. Branden Robinson <[email protected]>
+
+ * src/preproc/preconv/preconv.cpp (do_file): Tweak diagnostic
+ message; drop extra layer of quoting of file name, and migrate
+ to "cannot" from "unable to" phrasing.
+
2025-06-21 G. Branden Robinson <[email protected]>
* bootstrap.conf: Migrate to contemporary names for gnulib
diff --git a/src/preproc/preconv/preconv.cpp b/src/preproc/preconv/preconv.cpp
index b8517389f..54ba95208 100644
--- a/src/preproc/preconv/preconv.cpp
+++ b/src/preproc/preconv/preconv.cpp
@@ -1120,8 +1120,7 @@ do_file(const char *filename)
}
char *c_reported_filename = reported_filename.extract();
if (!fp) {
- error("unable to open '%1': %2", c_reported_filename,
- strerror(errno));
+ error("cannot open %1: %2", c_reported_filename, strerror(errno));
free(c_reported_filename);
return 0;
}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit