Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 20affd6

Browse files
committed
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.
1 parent dd5015a commit 20affd6

File tree

1 file changed

+1
-1
lines changed
  • src/backend/storage/file

1 file changed

+1
-1
lines changed

src/backend/storage/file/fd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2460,7 +2460,7 @@ pre_sync_fname(char *fname, bool isdir)
24602460

24612461
if (fd < 0)
24622462
ereport(FATAL,
2463-
(errmsg("could not open file \"%s\" before fsync",
2463+
(errmsg("could not open file \"%s\": %m",
24642464
fname)));
24652465

24662466
pg_flush_data(fd, 0, 0);

0 commit comments

Comments
 (0)