]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Further error message fix
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 7 Feb 2026 21:37:02 +0000 (22:37 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 7 Feb 2026 21:37:02 +0000 (22:37 +0100)
Further fix of error message changed in commit 74a116a79b4.  The
initial fix was not quite correct.

Discussion: https://www.postgresql.org/message-id/flat/tencent_1EE1430B1E6C18A663B8990F%40qq.com

src/bin/pg_rewind/file_ops.c

index 7de2195a4fa9df66c3859f720a3e77379665f591..5cfb676f41f872d1ed6cd97229f382c0e42ce2da 100644 (file)
@@ -327,7 +327,7 @@ slurpFile(const char *datadir, const char *path, size_t *filesize)
                                 fullpath);
 
        if (fstat(fd, &statbuf) < 0)
-               pg_fatal("could not stat file \"%s\" for reading: %m",
+               pg_fatal("could not stat file \"%s\": %m",
                                 fullpath);
 
        len = statbuf.st_size;