Skip to content

Commit 14e109e

Browse files
committed
Add missing newlines at end of error messages
1 parent d94eb49 commit 14e109e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/psql/command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf,
18501850
ret = GetTempPath(MAXPGPATH, tmpdir);
18511851
if (ret == 0 || ret > MAXPGPATH)
18521852
{
1853-
psql_error("cannot locate temporary directory: %s",
1853+
psql_error("could not locate temporary directory: %s\n",
18541854
!ret ? strerror(errno) : "");
18551855
return false;
18561856
}

src/bin/psql/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pg_calloc(size_t nmemb, size_t size)
8787
tmp = calloc(nmemb, size);
8888
if (!tmp)
8989
{
90-
psql_error("out of memory");
90+
psql_error("out of memory\n");
9191
exit(EXIT_FAILURE);
9292
}
9393
return tmp;

0 commit comments

Comments
 (0)