diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 098c31a472..1339f336ff 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 76cba901e0..1b51bbe6bf 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;