]> 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:23:18 +0000 (23:23 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 26 Jul 2011 20:23:18 +0000 (23:23 +0300)
src/bin/psql/command.c
src/bin/psql/common.c

index 7d2490ab8abe6b9e942cf25de96d96bf81542f92..3608b725963e56fa9a228abd5500b9c0177e5b11 100644 (file)
@@ -1855,7 +1855,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("could not locate temporary directory: %s\n",
                                           !ret ? strerror(errno) : "");
                        return false;
                }
index 256c1c2c2af22b66e4ccc0b79f848033dee80bc4..101544800d25a43837bfe5cbc2fb027300613bba 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;