aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_combinebackup/write_manifest.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-06-21 09:40:44 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-06-21 09:40:44 +0200
commitc5c82123d3050c3a5eef0f51e9783f1cc5004ba0 (patch)
tree2242a7fc7fa5031fb6c0e531cad16d450799a91c /src/bin/pg_combinebackup/write_manifest.c
parentaea79883c57a522f0234d135fe0a3de19178a964 (diff)
downloadpostgresql-c5c82123d3050c3a5eef0f51e9783f1cc5004ba0.tar.gz
postgresql-c5c82123d3050c3a5eef0f51e9783f1cc5004ba0.zip
pg_combinebackup: Error message improvements
Make the wordings of some file-related error messages more like those used in other files.
Diffstat (limited to 'src/bin/pg_combinebackup/write_manifest.c')
-rw-r--r--src/bin/pg_combinebackup/write_manifest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_combinebackup/write_manifest.c b/src/bin/pg_combinebackup/write_manifest.c
index 7a2065e1db7..369d6d2071c 100644
--- a/src/bin/pg_combinebackup/write_manifest.c
+++ b/src/bin/pg_combinebackup/write_manifest.c
@@ -184,7 +184,7 @@ finalize_manifest(manifest_writer *mwriter,
/* Close the file. */
if (close(mwriter->fd) != 0)
- pg_fatal("could not close \"%s\": %m", mwriter->pathname);
+ pg_fatal("could not close file \"%s\": %m", mwriter->pathname);
mwriter->fd = -1;
}
@@ -257,9 +257,9 @@ flush_manifest(manifest_writer *mwriter)
if (wb != mwriter->buf.len)
{
if (wb < 0)
- pg_fatal("could not write \"%s\": %m", mwriter->pathname);
+ pg_fatal("could not write file \"%s\": %m", mwriter->pathname);
else
- pg_fatal("could not write file \"%s\": wrote only %d of %d bytes",
+ pg_fatal("could not write file \"%s\": wrote %d of %d",
mwriter->pathname, (int) wb, mwriter->buf.len);
}