1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

libpq: Add missing newlines to error messages

This commit is contained in:
Peter Eisentraut
2022-11-13 21:09:09 +01:00
parent 062e133f6d
commit 45d5ecab49

View File

@ -202,7 +202,7 @@ pqParseInput3(PGconn *conn)
if (!conn->result) if (!conn->result)
{ {
appendPQExpBufferStr(&conn->errorMessage, appendPQExpBufferStr(&conn->errorMessage,
libpq_gettext("out of memory")); libpq_gettext("out of memory\n"));
pqSaveErrorResult(conn); pqSaveErrorResult(conn);
} }
} }
@ -227,7 +227,7 @@ pqParseInput3(PGconn *conn)
if (!conn->result) if (!conn->result)
{ {
appendPQExpBufferStr(&conn->errorMessage, appendPQExpBufferStr(&conn->errorMessage,
libpq_gettext("out of memory")); libpq_gettext("out of memory\n"));
pqSaveErrorResult(conn); pqSaveErrorResult(conn);
} }
else else
@ -256,7 +256,7 @@ pqParseInput3(PGconn *conn)
if (!conn->result) if (!conn->result)
{ {
appendPQExpBufferStr(&conn->errorMessage, appendPQExpBufferStr(&conn->errorMessage,
libpq_gettext("out of memory")); libpq_gettext("out of memory\n"));
pqSaveErrorResult(conn); pqSaveErrorResult(conn);
} }
} }
@ -274,7 +274,7 @@ pqParseInput3(PGconn *conn)
if (!conn->result) if (!conn->result)
{ {
appendPQExpBufferStr(&conn->errorMessage, appendPQExpBufferStr(&conn->errorMessage,
libpq_gettext("out of memory")); libpq_gettext("out of memory\n"));
pqSaveErrorResult(conn); pqSaveErrorResult(conn);
} }
} }
@ -355,7 +355,7 @@ pqParseInput3(PGconn *conn)
if (!conn->result) if (!conn->result)
{ {
appendPQExpBufferStr(&conn->errorMessage, appendPQExpBufferStr(&conn->errorMessage,
libpq_gettext("out of memory")); libpq_gettext("out of memory\n"));
pqSaveErrorResult(conn); pqSaveErrorResult(conn);
} }
} }