Skip to content

Commit 2f52518

Browse files
committed
Remove extra newlines after PQerrorMessage()
1 parent 488ccfe commit 2f52518

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bin/pg_basebackup/streamutil.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ GetConnection(void)
230230
res = PQexec(tmpconn, ALWAYS_SECURE_SEARCH_PATH_SQL);
231231
if (PQresultStatus(res) != PGRES_TUPLES_OK)
232232
{
233-
fprintf(stderr, _("%s: could not clear search_path: %s\n"),
233+
fprintf(stderr, _("%s: could not clear search_path: %s"),
234234
progname, PQerrorMessage(tmpconn));
235235
PQclear(res);
236236
PQfinish(tmpconn);
@@ -300,7 +300,7 @@ RetrieveWalSegSize(PGconn *conn)
300300
res = PQexec(conn, "SHOW wal_segment_size");
301301
if (PQresultStatus(res) != PGRES_TUPLES_OK)
302302
{
303-
fprintf(stderr, _("%s: could not send replication command \"%s\": %s\n"),
303+
fprintf(stderr, _("%s: could not send replication command \"%s\": %s"),
304304
progname, "SHOW wal_segment_size", PQerrorMessage(conn));
305305

306306
PQclear(res);
@@ -372,7 +372,7 @@ RetrieveDataDirCreatePerm(PGconn *conn)
372372
res = PQexec(conn, "SHOW data_directory_mode");
373373
if (PQresultStatus(res) != PGRES_TUPLES_OK)
374374
{
375-
fprintf(stderr, _("%s: could not send replication command \"%s\": %s\n"),
375+
fprintf(stderr, _("%s: could not send replication command \"%s\": %s"),
376376
progname, "SHOW data_directory_mode", PQerrorMessage(conn));
377377

378378
PQclear(res);

src/bin/pg_dump/pg_dumpall.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ connectDatabase(const char *dbname, const char *connection_string,
16611661
if (fail_on_error)
16621662
{
16631663
fprintf(stderr,
1664-
_("%s: could not connect to database \"%s\": %s\n"),
1664+
_("%s: could not connect to database \"%s\": %s"),
16651665
progname, dbname, PQerrorMessage(conn));
16661666
exit_nicely(1);
16671667
}

0 commit comments

Comments
 (0)