Add missing newlines at end of error messages

This commit is contained in:
Peter Eisentraut 2011-07-26 23:23:59 +03:00
parent 16976b026a
commit c366c5d87f
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;