From: Peter Eisentraut Date: Tue, 26 Jul 2011 20:24:57 +0000 (+0300) Subject: Add missing newlines at end of error messages X-Git-Tag: REL8_2_22~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4222d3880783f646e52ad4d6fd2f4017db444ce;p=postgresql Add missing newlines at end of error messages --- diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 014884a7b2..63db6a7d3d 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -1244,7 +1244,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 0a22d205c9..a63f9298e8 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -110,7 +110,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;