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

index acc5d35cf93c1e8ab53828d655b0c0921732501e..7c44faeb2c62aaa470321c1e158fd17f242f37a3 100644 (file)
@@ -1588,7 +1588,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf, bool *edited)
        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 877d6f7cdbc8a1f653d3939f291e05657607683a..54b8b2027e923ca4a5d93c6d3faf4071d4f5c616 100644 (file)
@@ -87,7 +87,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;