summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2011-07-26 20:23:18 +0000
committerPeter Eisentraut2011-07-26 20:23:18 +0000
commite67efb01e886d69d40d1cd87fba4507e8bb1035e (patch)
tree6ee88c0ce71fc90770e9344dabc974a6810ec4ba
parentce8d7bb6440710058503d213b2aafcdf56a5b481 (diff)
Add missing newlines at end of error messages
-rw-r--r--src/bin/psql/command.c2
-rw-r--r--src/bin/psql/common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 7d2490ab8a..3608b72596 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -1855,7 +1855,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("could not 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 256c1c2c2a..101544800d 100644
--- a/src/bin/psql/common.c
+++ b/src/bin/psql/common.c
@@ -87,7 +87,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;