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

index 098c31a4729aa94121eda71b92fd095925ed0cec..1339f336ff074df8992e3724a2d33ac8e875c57f 100644 (file)
@@ -1539,7 +1539,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 76cba901e0c9d1d89b4d54e9b90ccd099169394c..1b51bbe6bf21cd96015d5102a04134637084be22 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;