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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user