From: Peter Eisentraut Date: Tue, 13 Jun 2017 15:53:26 +0000 (-0400) Subject: libpq: Message style improvements X-Git-Tag: REL_10_BETA2~162 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e3fc7a7d322289c70f89199be0a5e899ec7d9b9;p=thirdparty%2Fpostgresql.git libpq: Message style improvements --- diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index ad9b0315e13..d906abf9c8f 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 7a339d67ef4..1069e001bca 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;