Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Add missing newlines at end of error messages
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 26 Jul 2011 20:27:40 +0000 (23:27 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 26 Jul 2011 20:27:40 +0000 (23:27 +0300)
src/bin/psql/command.c
src/bin/psql/common.c

index afba6b31987c29fc350bb41bdf05b945312d32e6..472bcab03b59a69d90e86807ddb0b298b7b96569 100644 (file)
@@ -1850,7 +1850,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;