summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2023-05-17 19:13:08 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2023-05-17 19:13:08 +0200
commit58dc80acc5ebf12223be90db1a97dc0b31ca4e1f (patch)
treee92100a3fa9bab816e1d052797b026d71793efcd
parent98bd4c72fd6c4f9d6a2b3b449cb89f335116ab5a (diff)
downloadpostgresql-58dc80acc5ebf12223be90db1a97dc0b31ca4e1f.tar.gz
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.
-rw-r--r--src/bin/pg_dump/compress_zstd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_dump/compress_zstd.c b/src/bin/pg_dump/compress_zstd.c
index 001b4f1513..9fbdc0a87d 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;
}