From: Peter Eisentraut Date: Tue, 26 Jul 2011 20:24:35 +0000 (+0300) Subject: Add missing newlines at end of error messages X-Git-Tag: REL8_3_16~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4810fd10c665d491a3956fcda5c57ee11dc972e7;p=thirdparty%2Fpostgresql.git Add missing newlines at end of error messages --- diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 8680b3696ce..c14db7d6421 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -1350,7 +1350,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf) ret = GetTempPath(MAXPGPATH, tmpdir); if (ret == 0 || ret > MAXPGPATH) { - psql_error("cannot locate temporary directory: %s", + psql_error("cannot locate temporary directory: %s\n", !ret ? strerror(errno) : ""); return false; } diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 9670dc62b88..98737324d07 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -85,7 +85,7 @@ pg_calloc(size_t nmemb, size_t size) tmp = calloc(nmemb, size); if (!tmp) { - psql_error("out of memory"); + psql_error("out of memory\n"); exit(EXIT_FAILURE); } return tmp;