Skip to content

Commit 2259c66

Browse files
committed
Fix incorrect copy-pasto in error message of pg_waldump.c
The error message used on fclose() failure was incorrect, so fix it. Oversight in d497093, that I have somehow managed to miss.
1 parent d497093 commit 2259c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_waldump/pg_waldump.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ XLogRecordSaveFPWs(XLogReaderState *record, const char *savepath)
529529
pg_fatal("could not write file \"%s\": %m", filename);
530530

531531
if (fclose(file) != 0)
532-
pg_fatal("could not write file \"%s\": %m", filename);
532+
pg_fatal("could not close file \"%s\": %m", filename);
533533
}
534534
}
535535

0 commit comments

Comments
 (0)