1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-16 16:42:29 +03:00

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
This commit is contained in:
Peter Eisentraut
2020-11-07 22:15:52 +01:00
parent eed4356fad
commit 6be725e701
3 changed files with 3 additions and 5 deletions

View File

@@ -282,8 +282,7 @@ main(int argc, char **argv)
conn = PQconnectdb(connstr_source);
if (PQstatus(conn) == CONNECTION_BAD)
pg_fatal("could not connect to server: %s",
PQerrorMessage(conn));
pg_fatal("%s", PQerrorMessage(conn));
if (showprogress)
pg_log_info("connected to server");