aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-05-05 10:51:38 -0400
committerPeter Eisentraut <peter_e@gmx.net>2018-05-05 10:53:28 -0400
commit7ff50cf60b20fa8c333e427f5e61b59f913844fe (patch)
treededa49a101949cc6d6e98136c705e1d2dcccffef
parent7b7521d6577295413db2088beac6136d39d61e4e (diff)
downloadpostgresql-7ff50cf60b20fa8c333e427f5e61b59f913844fe.tar.gz
postgresql-7ff50cf60b20fa8c333e427f5e61b59f913844fe.zip
Remove extra newlines after PQerrorMessage()
-rw-r--r--src/bin/pg_basebackup/streamutil.c2
-rw-r--r--src/bin/pg_dump/pg_dumpall.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/streamutil.c b/src/bin/pg_basebackup/streamutil.c
index 933091ff1f8..8ef133d119c 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 3554f51ec56..75d0d9727cb 100644
--- a/src/bin/pg_dump/pg_dumpall.c
+++ b/src/bin/pg_dump/pg_dumpall.c
@@ -2028,7 +2028,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);
}