diff options
author | Peter Eisentraut | 2017-06-13 15:53:26 +0000 |
---|---|---|
committer | Peter Eisentraut | 2017-06-13 15:53:50 +0000 |
commit | 2e3fc7a7d322289c70f89199be0a5e899ec7d9b9 (patch) | |
tree | 063c42c8bd41c451e477661fa1b55e4b9ea51d45 | |
parent | ee252f074b88e34ff7ac2b45a73d3cee12b1c671 (diff) |
libpq: Message style improvements
-rw-r--r-- | src/interfaces/libpq/fe-auth.c | 3 | ||||
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index ad9b0315e1..d906abf9c8 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -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; } diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 7a339d67ef..1069e001bc 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -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; |