libpq: Add missing newlines to error messages
authorPeter Eisentraut <peter@eisentraut.org>
Sun, 13 Nov 2022 20:09:09 +0000 (21:09 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 13 Nov 2022 20:09:09 +0000 (21:09 +0100)
src/interfaces/libpq/fe-protocol3.c

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