Add missing newlines at end of error messages
authorPeter Eisentraut <[email protected]>
Tue, 26 Jul 2011 20:24:57 +0000 (23:24 +0300)
committerPeter Eisentraut <[email protected]>
Tue, 26 Jul 2011 20:24:57 +0000 (23:24 +0300)
src/bin/psql/command.c
src/bin/psql/common.c

index 014884a7b2539d7e5c437f0c9cbb28c05cfdaff0..63db6a7d3de36789554ebd3021e39e3bd88d0675 100644 (file)
@@ -1244,7 +1244,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf)
        ret = GetTempPath(MAXPGPATH, tmpdir);
        if (ret == 0 || ret > MAXPGPATH)
        {
-           psql_error("cannot locate temporary directory: %s",
+           psql_error("cannot locate temporary directory: %s\n",
                       !ret ? strerror(errno) : "");
            return false;
        }
index 0a22d205c93d365e0d1f3cf321f749b29948ac7d..a63f9298e82b005404bd61a706a086bc122b8c3f 100644 (file)
@@ -110,7 +110,7 @@ pg_calloc(size_t nmemb, size_t size)
    tmp = calloc(nmemb, size);
    if (!tmp)
    {
-       psql_error("out of memory");
+       psql_error("out of memory\n");
        exit(EXIT_FAILURE);
    }
    return tmp;