psql: Message style improvements
authorPeter Eisentraut
Sun, 22 May 2016 02:17:00 +0000 (22:17 -0400)
committerPeter Eisentraut
Sun, 22 May 2016 02:17:00 +0000 (22:17 -0400)
src/bin/psql/command.c
src/bin/psql/common.c

index 87adfce9c114e136cca7fcccbf360fa694972847..693b5312afc1395afe936645e7ae894089c79263 100644 (file)
@@ -854,7 +854,7 @@ exec_command(const char *cmd,
                puts(_("out of memory"));
        }
        else
-           puts(_("There was no previous error."));
+           puts(_("There is no previous error."));
    }
 
    /* \f -- change field separator */
@@ -3363,7 +3363,7 @@ get_create_object_cmd(EditableObjectType obj_type, Oid oid,
                            appendPQExpBufferStr(buf, "CREATE OR REPLACE VIEW ");
                            break;
                        default:
-                           psql_error("%s.%s is not a view\n",
+                           psql_error("\"%s.%s\" is not a view\n",
                                       nspname, relname);
                            result = false;
                            break;
@@ -3379,7 +3379,7 @@ get_create_object_cmd(EditableObjectType obj_type, Oid oid,
                                                   pset.encoding,
                                                   standard_strings()))
                        {
-                           psql_error("Could not parse reloptions array\n");
+                           psql_error("could not parse reloptions array\n");
                            result = false;
                        }
                        appendPQExpBufferStr(buf, ")");
index 2c0d781302c9272515643d4c80e870a0f35c8714..b8bdcc751a201dc04e8dc0c6cff9fef3d257453a 100644 (file)
@@ -134,7 +134,7 @@ psql_get_variable(const char *varname, bool escape, bool as_ident)
 
        if (!pset.db)
        {
-           psql_error("can't escape without active connection\n");
+           psql_error("cannot escape without active connection\n");
            return NULL;
        }