diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-11-07 22:15:52 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-11-07 22:44:48 +0100 |
commit | 468bed27ce8dadb5f445ce1587b441b563dfb3d4 (patch) | |
tree | ca40269fbcd7456e3aa45587753c21e21edbce1b /src/bin/pg_basebackup/streamutil.c | |
parent | 0b96fc977c5b387f0f8a980672f035b34cdf60b7 (diff) |
Fix redundant error messages in client tools
A few client tools duplicate error messages already provided by libpq.
Discussion: https://www.postgresql.org/message-id/flat/3e937641-88a1-e697-612e-99bba4b8e5e4%40enterprisedb.com
Diffstat (limited to 'src/bin/pg_basebackup/streamutil.c')
-rw-r--r-- | src/bin/pg_basebackup/streamutil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/streamutil.c b/src/bin/pg_basebackup/streamutil.c index a240aae9f2f..882ba4b50a5 100644 --- a/src/bin/pg_basebackup/streamutil.c +++ b/src/bin/pg_basebackup/streamutil.c @@ -190,8 +190,7 @@ GetConnection(void) if (PQstatus(tmpconn) != CONNECTION_OK) { - fprintf(stderr, _("%s: could not connect to server: %s"), - progname, PQerrorMessage(tmpconn)); + fprintf(stderr, _("%s: %s"), progname, PQerrorMessage(tmpconn)); PQfinish(tmpconn); free(values); free(keywords); |