aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2011-07-26 23:27:40 +0300
committerPeter Eisentraut <peter_e@gmx.net>2011-07-26 23:27:40 +0300
commit14e109e82e8a7a179ad828ec1ed06ac0a8cd011a (patch)
treeb55dbea82b5673eff3ec58367fff43fd16147058 /src
parentd94eb49634fff6abc72bed577269aa21fd9f01e9 (diff)
downloadpostgresql-14e109e82e8a7a179ad828ec1ed06ac0a8cd011a.tar.gz
postgresql-14e109e82e8a7a179ad828ec1ed06ac0a8cd011a.zip
Add missing newlines at end of error messages
Diffstat (limited to 'src')
-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 afba6b31987..472bcab03b5 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -1850,7 +1850,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 256c1c2c2af..101544800d2 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;