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.
This commit is contained in:
Alvaro Herrera 2023-05-17 19:13:08 +02:00
parent 98bd4c72fd
commit 58dc80acc5
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE

View File

@ -63,7 +63,7 @@ _Zstd_CCtx_setParam_or_die(ZSTD_CStream *cstream,
res = ZSTD_CCtx_setParameter(cstream, param, value); res = ZSTD_CCtx_setParameter(cstream, param, value);
if (ZSTD_isError(res)) 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)); 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"); pg_fatal("could not initialize compression library");
} }
else else
pg_fatal("unhandled mode"); pg_fatal("unhandled mode \"%s\"", mode);
return true; return true;
} }