From: Alvaro Herrera Date: Wed, 17 May 2023 17:13:08 +0000 (+0200) Subject: pg_dump: Error message improvements X-Git-Tag: REL_16_BETA1~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58dc80acc5ebf12223be90db1a97dc0b31ca4e1f;p=thirdparty%2Fpostgresql.git pg_dump: Error message improvements Remove spurious semicolon from one error message, and print the offending value of a parameter reported as invalid in another. --- diff --git a/src/bin/pg_dump/compress_zstd.c b/src/bin/pg_dump/compress_zstd.c index 001b4f15130..9fbdc0a87da 100644 --- a/src/bin/pg_dump/compress_zstd.c +++ b/src/bin/pg_dump/compress_zstd.c @@ -63,7 +63,7 @@ _Zstd_CCtx_setParam_or_die(ZSTD_CStream *cstream, res = ZSTD_CCtx_setParameter(cstream, param, value); if (ZSTD_isError(res)) - pg_fatal("could not set compression parameter: \"%s\": %s", + pg_fatal("could not set compression parameter \"%s\": %s", paramname, ZSTD_getErrorName(res)); } @@ -498,7 +498,7 @@ Zstd_open(const char *path, int fd, const char *mode, pg_fatal("could not initialize compression library"); } else - pg_fatal("unhandled mode"); + pg_fatal("unhandled mode \"%s\"", mode); return true; }