diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2011-07-26 23:23:59 +0300 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2011-07-26 23:23:59 +0300 |
commit | c366c5d87f5158be7ff886d097ccb8ef8c1c92fe (patch) | |
tree | b32fccd77bf7bf444d4b00f98cbaee9bb22557b7 /src | |
parent | 16976b026a80567695e68a52592a73a75dc391ed (diff) | |
download | postgresql-c366c5d87f5158be7ff886d097ccb8ef8c1c92fe.tar.gz postgresql-c366c5d87f5158be7ff886d097ccb8ef8c1c92fe.zip |
Add missing newlines at end of error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/command.c | 2 | ||||
-rw-r--r-- | 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 098c31a4729..1339f336ff0 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -1539,7 +1539,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf, bool *edited) 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 76cba901e0c..1b51bbe6bf2 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; |