Fix incorrect copy-pasto in error message of pg_waldump.c
authorMichael Paquier <michael@paquier.xyz>
Tue, 27 Dec 2022 03:16:24 +0000 (12:16 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 27 Dec 2022 03:16:24 +0000 (12:16 +0900)
The error message used on fclose() failure was incorrect, so fix it.
Oversight in d497093, that I have somehow managed to miss.

src/bin/pg_waldump/pg_waldump.c

index 15cc500672dd074e60853921b4bb8bb586e9e4f4..e97c47f307119fb25836d40351069949ff830bdc 100644 (file)
@@ -529,7 +529,7 @@ XLogRecordSaveFPWs(XLogReaderState *record, const char *savepath)
            pg_fatal("could not write file \"%s\": %m", filename);
 
        if (fclose(file) != 0)
-           pg_fatal("could not write file \"%s\": %m", filename);
+           pg_fatal("could not close file \"%s\": %m", filename);
    }
 }