diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2013-07-15 20:04:14 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2013-07-15 20:04:14 -0400 |
commit | 233bfe06735411f08d231764dfd3a6fcf7aef9a3 (patch) | |
tree | a92efd3ebdcc104cd01fe64137ab74b221ac4f94 /src/bin/scripts/pg_isready.c | |
parent | 4ed22e891f9915b02b753ee8763a8f2438234fc6 (diff) | |
download | postgresql-233bfe06735411f08d231764dfd3a6fcf7aef9a3.tar.gz postgresql-233bfe06735411f08d231764dfd3a6fcf7aef9a3.zip |
Fix PQconninfoParse error message handling
The returned error message already includes a newline, but the callers
were adding their own when printing it out.
Diffstat (limited to 'src/bin/scripts/pg_isready.c')
-rw-r--r-- | src/bin/scripts/pg_isready.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/scripts/pg_isready.c b/src/bin/scripts/pg_isready.c index 5cb75a42ec0..d27ccea70fb 100644 --- a/src/bin/scripts/pg_isready.c +++ b/src/bin/scripts/pg_isready.c @@ -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); } } |