Skip to content

Commit 9df8ce8

Browse files
committed
Add missing newlines at end of error messages
1 parent 6f8f9c2 commit 9df8ce8

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
@@ -1588,7 +1588,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf, bool *edited)
15881588
ret = GetTempPath(MAXPGPATH, tmpdir);
15891589
if (ret == 0 || ret > MAXPGPATH)
15901590
{
1591-
psql_error("cannot locate temporary directory: %s",
1591+
psql_error("cannot locate temporary directory: %s\n",
15921592
!ret ? strerror(errno) : "");
15931593
return false;
15941594
}

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)