Skip to content

Commit 4810fd1

Browse files
committed
Add missing newlines at end of error messages
1 parent ee27058 commit 4810fd1

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
@@ -1350,7 +1350,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf)
13501350
ret = GetTempPath(MAXPGPATH, tmpdir);
13511351
if (ret == 0 || ret > MAXPGPATH)
13521352
{
1353-
psql_error("cannot locate temporary directory: %s",
1353+
psql_error("cannot locate temporary directory: %s\n",
13541354
!ret ? strerror(errno) : "");
13551355
return false;
13561356
}

src/bin/psql/common.c

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

0 commit comments

Comments
 (0)