]> granicus.if.org Git - postgresql/commitdiff
Add missing newlines at end of error messages
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 26 Jul 2011 20:24:35 +0000 (23:24 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 26 Jul 2011 20:24:35 +0000 (23:24 +0300)
src/bin/psql/command.c
src/bin/psql/common.c

index 8680b3696ce3f93a2b2fa72dc0854484bbff8ff4..c14db7d64213103b54651bdc0b09a7b5901995cc 100644 (file)
@@ -1350,7 +1350,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 9670dc62b8856b94f58d36a581e923f212325b7a..98737324d072d9d10856200fd224a051a59fa38e 100644 (file)
@@ -85,7 +85,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;