]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
libpq: Message style improvements
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 13 Jun 2017 15:53:26 +0000 (11:53 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 13 Jun 2017 15:53:50 +0000 (11:53 -0400)
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-connect.c

index ad9b0315e13cc6c52c056a366547dcca2ee11067..d906abf9c8f645bac0623dea11f179aa998d9aa1 100644 (file)
@@ -1218,7 +1218,8 @@ PQencryptPasswordConn(PGconn *conn, const char *passwd, const char *user,
        else
        {
                printfPQExpBuffer(&conn->errorMessage,
-                                  libpq_gettext("unknown password encryption algorithm\n"));
+                                  libpq_gettext("unrecognized password encryption algorithm \"%s\"\n"),
+                                                 algorithm);
                return NULL;
        }
 
index 7a339d67ef4ee24137786e358a6a29422c073b78..1069e001bca3f4cb8cc03e6220e25f27d369c0d8 100644 (file)
@@ -3099,7 +3099,7 @@ keep_going:                                               /* We will come back to here until there is
                                restoreErrorMessage(conn, &savedMessage);
                                appendPQExpBuffer(&conn->errorMessage,
                                  libpq_gettext("test \"SHOW transaction_read_only\" failed "
-                                                               " on \"%s:%s\"\n"),
+                                                               "on server \"%s:%s\"\n"),
                                                                  conn->connhost[conn->whichhost].host,
                                                                  conn->connhost[conn->whichhost].port);
                                conn->status = CONNECTION_OK;