mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Fix PQconninfoParse error message handling
The returned error message already includes a newline, but the callers were adding their own when printing it out.
This commit is contained in:
@@ -56,7 +56,7 @@ GetConnection(void)
|
||||
conn_opts = PQconninfoParse(connection_string, &err_msg);
|
||||
if (conn_opts == NULL)
|
||||
{
|
||||
fprintf(stderr, "%s: %s\n", progname, err_msg);
|
||||
fprintf(stderr, "%s: %s", progname, err_msg);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user