Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58dc80a

Browse files
committed
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.
1 parent 98bd4c7 commit 58dc80a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/compress_zstd.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ _Zstd_CCtx_setParam_or_die(ZSTD_CStream *cstream,
6363

6464
res = ZSTD_CCtx_setParameter(cstream, param, value);
6565
if (ZSTD_isError(res))
66-
pg_fatal("could not set compression parameter: \"%s\": %s",
66+
pg_fatal("could not set compression parameter \"%s\": %s",
6767
paramname, ZSTD_getErrorName(res));
6868
}
6969

@@ -498,7 +498,7 @@ Zstd_open(const char *path, int fd, const char *mode,
498498
pg_fatal("could not initialize compression library");
499499
}
500500
else
501-
pg_fatal("unhandled mode");
501+
pg_fatal("unhandled mode \"%s\"", mode);
502502

503503
return true;
504504
}

0 commit comments

Comments
 (0)