summaryrefslogtreecommitdiff
path: root/src/bin/pg_basebackup/streamutil.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-11-07 22:15:52 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-11-07 22:45:32 +0100
commit24bbdaa6feace76768b398ddcbbef6efcc2db45a (patch)
treef13b60f6989d81781a221a61f812f84c2e92147f /src/bin/pg_basebackup/streamutil.c
parentd2d3a4bd33d2c0b1ffb1a4f6db6b866619134a4b (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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/streamutil.c b/src/bin/pg_basebackup/streamutil.c
index b4fa9f59d25..23ef13abdc3 100644
--- a/src/bin/pg_basebackup/streamutil.c
+++ b/src/bin/pg_basebackup/streamutil.c
@@ -193,8 +193,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);