Skip to content

Commit c4222d3

Browse files
committed
Add missing newlines at end of error messages
1 parent a5b0d95 commit c4222d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/psql/command.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf)
12441244
ret = GetTempPath(MAXPGPATH, tmpdir);
12451245
if (ret == 0 || ret > MAXPGPATH)
12461246
{
1247-
psql_error("cannot locate temporary directory: %s",
1247+
psql_error("cannot locate temporary directory: %s\n",
12481248
!ret ? strerror(errno) : "");
12491249
return false;
12501250
}

src/bin/psql/common.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pg_calloc(size_t nmemb, size_t size)
110110
tmp = calloc(nmemb, size);
111111
if (!tmp)
112112
{
113-
psql_error("out of memory");
113+
psql_error("out of memory\n");
114114
exit(EXIT_FAILURE);
115115
}
116116
return tmp;

0 commit comments

Comments
 (0)