From 24bbdaa6feace76768b398ddcbbef6efcc2db45a Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 7 Nov 2020 22:15:52 +0100 Subject: 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 --- src/bin/pg_basebackup/streamutil.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/bin/pg_basebackup/streamutil.c') 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); -- cgit v1.2.3