aboutsummaryrefslogtreecommitdiff
path: root/src
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:01 -0400
commit0ebb3a4e16d246c8749a1e6e3e59e9db3e408200 (patch)
treeecef14fd95581e3140866c8e20c9c5a27e886bef /src
parentca572db22f62c24b060a0377d33ba312329b47c7 (diff)
downloadpostgresql-0ebb3a4e16d246c8749a1e6e3e59e9db3e408200.tar.gz
postgresql-0ebb3a4e16d246c8749a1e6e3e59e9db3e408200.zip
Remove extra newlines after PQerrorMessage()
Diffstat (limited to 'src')
-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 7b60a070765..a240aae9f2f 100644
--- a/src/bin/pg_basebackup/streamutil.c
+++ b/src/bin/pg_basebackup/streamutil.c
@@ -219,7 +219,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 ec968a11709..8d054954b5b 100644
--- a/src/bin/pg_dump/pg_dumpall.c
+++ b/src/bin/pg_dump/pg_dumpall.c
@@ -2017,7 +2017,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);
}