Remove extra newlines after PQerrorMessage()
authorPeter Eisentraut
Sat, 5 May 2018 14:51:38 +0000 (10:51 -0400)
committerPeter Eisentraut
Sat, 5 May 2018 14:53:28 +0000 (10:53 -0400)
src/bin/pg_basebackup/streamutil.c
src/bin/pg_dump/pg_dumpall.c

index 933091ff1f889d89e71883479afd4478ce3157e0..8ef133d119cb3b13fc74c02e4bac730ab103478d 100644 (file)
@@ -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);
index 3554f51ec564e08e45621a0815753bd3c404ae1b..75d0d9727cbeaeee040746d1704c4c2eb8ed747a 100644 (file)
@@ -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);
        }