Commit 922de19e authored by Robert Haas's avatar Robert Haas

Fix error message in pre_sync_fname.

The old one didn't include %m anywhere, and required extra
translation.

Report by Peter Eisentraut. Fix by me. Review by Tom Lane.
parent 19d47ed2
......@@ -2461,7 +2461,7 @@ pre_sync_fname(char *fname, bool isdir)
if (fd < 0)
ereport(FATAL,
(errmsg("could not open file \"%s\" before fsync",
(errmsg("could not open file \"%s\": %m",
fname)));
pg_flush_data(fd, 0, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment