mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Message wording tweaks
Make the wording of new libpq messages more similar to existing messages in the backend.
This commit is contained in:
@ -851,7 +851,7 @@ initialize_SSL(PGconn *conn)
|
|||||||
if (ssl_min_ver == -1)
|
if (ssl_min_ver == -1)
|
||||||
{
|
{
|
||||||
printfPQExpBuffer(&conn->errorMessage,
|
printfPQExpBuffer(&conn->errorMessage,
|
||||||
libpq_gettext("invalid value \"%s\" for minimum version of SSL protocol\n"),
|
libpq_gettext("invalid value \"%s\" for minimum SSL protocol version\n"),
|
||||||
conn->ssl_min_protocol_version);
|
conn->ssl_min_protocol_version);
|
||||||
SSL_CTX_free(SSL_context);
|
SSL_CTX_free(SSL_context);
|
||||||
return -1;
|
return -1;
|
||||||
@ -862,7 +862,7 @@ initialize_SSL(PGconn *conn)
|
|||||||
char *err = SSLerrmessage(ERR_get_error());
|
char *err = SSLerrmessage(ERR_get_error());
|
||||||
|
|
||||||
printfPQExpBuffer(&conn->errorMessage,
|
printfPQExpBuffer(&conn->errorMessage,
|
||||||
libpq_gettext("could not set minimum version of SSL protocol: %s\n"),
|
libpq_gettext("could not set minimum SSL protocol version: %s\n"),
|
||||||
err);
|
err);
|
||||||
SSLerrfree(err);
|
SSLerrfree(err);
|
||||||
SSL_CTX_free(SSL_context);
|
SSL_CTX_free(SSL_context);
|
||||||
@ -880,7 +880,7 @@ initialize_SSL(PGconn *conn)
|
|||||||
if (ssl_max_ver == -1)
|
if (ssl_max_ver == -1)
|
||||||
{
|
{
|
||||||
printfPQExpBuffer(&conn->errorMessage,
|
printfPQExpBuffer(&conn->errorMessage,
|
||||||
libpq_gettext("invalid value \"%s\" for maximum version of SSL protocol\n"),
|
libpq_gettext("invalid value \"%s\" for maximum SSL protocol version\n"),
|
||||||
conn->ssl_max_protocol_version);
|
conn->ssl_max_protocol_version);
|
||||||
SSL_CTX_free(SSL_context);
|
SSL_CTX_free(SSL_context);
|
||||||
return -1;
|
return -1;
|
||||||
@ -891,7 +891,7 @@ initialize_SSL(PGconn *conn)
|
|||||||
char *err = SSLerrmessage(ERR_get_error());
|
char *err = SSLerrmessage(ERR_get_error());
|
||||||
|
|
||||||
printfPQExpBuffer(&conn->errorMessage,
|
printfPQExpBuffer(&conn->errorMessage,
|
||||||
libpq_gettext("could not set maximum version of SSL protocol: %s\n"),
|
libpq_gettext("could not set maximum SSL protocol version: %s\n"),
|
||||||
err);
|
err);
|
||||||
SSLerrfree(err);
|
SSLerrfree(err);
|
||||||
SSL_CTX_free(SSL_context);
|
SSL_CTX_free(SSL_context);
|
||||||
|
Reference in New Issue
Block a user