postgres.git / summary / log / commit / refs

commit    2259c661dc4ecd88ac22b5358248f47ca5a5d4fc
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Tue Dec 27 03:16:24 2022 +0000
First released in: 16.0

    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.


src/bin/pg_waldump/pg_waldump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_waldump/pg_waldump.c b/src/bin/pg_waldump/pg_waldump.c index 15cc500672d..e97c47f3071 100644 --- a/src/bin/pg_waldump/pg_waldump.c +++ b/src/bin/pg_waldump/pg_waldump.c @@ -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); } } [parent: d497093cbecc]