mirror of
https://github.com/postgres/postgres.git
synced 2025-05-31 03:21:24 +03:00
Remove extra newlines after PQerrorMessage()
This commit is contained in:
parent
ca572db22f
commit
0ebb3a4e16
@ -219,7 +219,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);
|
||||||
|
@ -2017,7 +2017,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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user