Commit 19ff2e4d authored by Tom Lane's avatar Tom Lane

Make connection-failed messages a little friendlier on

80-column displays...
parent 6256fcb9
......@@ -158,8 +158,9 @@ main(int argc, char **argv)
if (PQstatus(settings.db) == CONNECTION_BAD)
{
fprintf(stderr, "%s: connection to database '%s' failed - %s",
settings.progname, PQdb(settings.db), PQerrorMessage(settings.db));
fprintf(stderr, "%s: connection to database '%s' failed.\n%s",
settings.progname, PQdb(settings.db),
PQerrorMessage(settings.db));
PQfinish(settings.db);
exit(EXIT_BADCONN);
}
......
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