From 3a934331722a8d65242e9a39aa5533a58f3b7d17 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 5 May 2018 10:51:38 -0400 Subject: [PATCH] Remove extra newlines after PQerrorMessage() --- src/bin/pg_basebackup/streamutil.c | 2 +- src/bin/pg_dump/pg_dumpall.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/pg_basebackup/streamutil.c b/src/bin/pg_basebackup/streamutil.c index bdeab3aea56..b4fa9f59d25 100644 --- a/src/bin/pg_basebackup/streamutil.c +++ b/src/bin/pg_basebackup/streamutil.c @@ -222,7 +222,7 @@ GetConnection(void) res = PQexec(tmpconn, ALWAYS_SECURE_SEARCH_PATH_SQL); if (PQresultStatus(res) != PGRES_TUPLES_OK) { - fprintf(stderr, _("%s: could not clear search_path: %s\n"), + fprintf(stderr, _("%s: could not clear search_path: %s"), progname, PQerrorMessage(tmpconn)); PQclear(res); PQfinish(tmpconn); diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index 88cf92e09a7..d9208799ab6 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -1932,7 +1932,7 @@ connectDatabase(const char *dbname, const char *connection_string, if (fail_on_error) { fprintf(stderr, - _("%s: could not connect to database \"%s\": %s\n"), + _("%s: could not connect to database \"%s\": %s"), progname, dbname, PQerrorMessage(conn)); exit_nicely(1); }