]> granicus.if.org Git - postgresql/commitdiff
Remove extra newlines after PQerrorMessage()
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 5 May 2018 14:51:38 +0000 (10:51 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 5 May 2018 14:51:38 +0000 (10:51 -0400)
src/bin/pg_basebackup/streamutil.c
src/bin/pg_dump/pg_dumpall.c

index 3394537d854ce0ae43f11cd1236422ad2386bf34..f68019d570627a8cb6a2c7ca9c16addf7b8700f2 100644 (file)
@@ -230,7 +230,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);
@@ -300,7 +300,7 @@ RetrieveWalSegSize(PGconn *conn)
        res = PQexec(conn, "SHOW wal_segment_size");
        if (PQresultStatus(res) != PGRES_TUPLES_OK)
        {
-               fprintf(stderr, _("%s: could not send replication command \"%s\": %s\n"),
+               fprintf(stderr, _("%s: could not send replication command \"%s\": %s"),
                                progname, "SHOW wal_segment_size", PQerrorMessage(conn));
 
                PQclear(res);
@@ -372,7 +372,7 @@ RetrieveDataDirCreatePerm(PGconn *conn)
        res = PQexec(conn, "SHOW data_directory_mode");
        if (PQresultStatus(res) != PGRES_TUPLES_OK)
        {
-               fprintf(stderr, _("%s: could not send replication command \"%s\": %s\n"),
+               fprintf(stderr, _("%s: could not send replication command \"%s\": %s"),
                                progname, "SHOW data_directory_mode", PQerrorMessage(conn));
 
                PQclear(res);
index 75e4a539bfb19a78feed1f9c98cf8e7f16bd7f85..55de7449b459677015cda6e2fb8cc74a39c9ef57 100644 (file)
@@ -1661,7 +1661,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);
                }