From: Tom Lane Date: Fri, 14 Jan 2000 04:01:55 +0000 (+0000) Subject: Make connection-failed messages a little friendlier on X-Git-Tag: REL7_0~856 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19ff2e4d55505c81555701dd7464c643c4f0a8b9;p=postgresql Make connection-failed messages a little friendlier on 80-column displays... --- diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c index 6161389841..35f4ddce05 100644 --- a/src/bin/psql/startup.c +++ b/src/bin/psql/startup.c @@ -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); }