postgres.git / summary / log / commit / refs
commit c4222d3880783f646e52ad4d6fd2f4017db444ce
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Tue Jul 26 20:24:57 2011 +0000
First released in: 9.2.0, 8.2.22, 8.3.16, 8.4.9, 9.0.5, 9.1.0
Add missing newlines at end of error messages
src/bin/psql/command.c | 2 +-
src/bin/psql/common.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 014884a7b25..63db6a7d3de 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 0a22d205c93..a63f9298e82 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;
[parent: a5b0d95744cf]