mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +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:
@ -135,7 +135,7 @@ main(int argc, char **argv)
|
||||
opts = PQconninfoParse(pgdbname, &errmsg);
|
||||
if (opts == NULL)
|
||||
{
|
||||
fprintf(stderr, _("%s: %s\n"), progname, errmsg);
|
||||
fprintf(stderr, _("%s: %s"), progname, errmsg);
|
||||
exit(PQPING_NO_ATTEMPT);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user