Commit 2f525187 authored by Peter Eisentraut's avatar Peter Eisentraut

Remove extra newlines after PQerrorMessage()

parent 488ccfe4
...@@ -230,7 +230,7 @@ GetConnection(void) ...@@ -230,7 +230,7 @@ GetConnection(void)
res = PQexec(tmpconn, ALWAYS_SECURE_SEARCH_PATH_SQL); res = PQexec(tmpconn, ALWAYS_SECURE_SEARCH_PATH_SQL);
if (PQresultStatus(res) != PGRES_TUPLES_OK) 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)); progname, PQerrorMessage(tmpconn));
PQclear(res); PQclear(res);
PQfinish(tmpconn); PQfinish(tmpconn);
...@@ -300,7 +300,7 @@ RetrieveWalSegSize(PGconn *conn) ...@@ -300,7 +300,7 @@ RetrieveWalSegSize(PGconn *conn)
res = PQexec(conn, "SHOW wal_segment_size"); res = PQexec(conn, "SHOW wal_segment_size");
if (PQresultStatus(res) != PGRES_TUPLES_OK) 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)); progname, "SHOW wal_segment_size", PQerrorMessage(conn));
PQclear(res); PQclear(res);
...@@ -372,7 +372,7 @@ RetrieveDataDirCreatePerm(PGconn *conn) ...@@ -372,7 +372,7 @@ RetrieveDataDirCreatePerm(PGconn *conn)
res = PQexec(conn, "SHOW data_directory_mode"); res = PQexec(conn, "SHOW data_directory_mode");
if (PQresultStatus(res) != PGRES_TUPLES_OK) 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)); progname, "SHOW data_directory_mode", PQerrorMessage(conn));
PQclear(res); PQclear(res);
......
...@@ -1661,7 +1661,7 @@ connectDatabase(const char *dbname, const char *connection_string, ...@@ -1661,7 +1661,7 @@ connectDatabase(const char *dbname, const char *connection_string,
if (fail_on_error) if (fail_on_error)
{ {
fprintf(stderr, fprintf(stderr,
_("%s: could not connect to database \"%s\": %s\n"), _("%s: could not connect to database \"%s\": %s"),
progname, dbname, PQerrorMessage(conn)); progname, dbname, PQerrorMessage(conn));
exit_nicely(1); exit_nicely(1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment