mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Message wording tweaks
Make the wording of new libpq messages more similar to existing messages in the backend.
This commit is contained in:
parent
add4211600
commit
49223e106b
@ -851,7 +851,7 @@ initialize_SSL(PGconn *conn)
|
||||
if (ssl_min_ver == -1)
|
||||
{
|
||||
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);
|
||||
SSL_CTX_free(SSL_context);
|
||||
return -1;
|
||||
@ -862,7 +862,7 @@ initialize_SSL(PGconn *conn)
|
||||
char *err = SSLerrmessage(ERR_get_error());
|
||||
|
||||
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);
|
||||
SSLerrfree(err);
|
||||
SSL_CTX_free(SSL_context);
|
||||
@ -880,7 +880,7 @@ initialize_SSL(PGconn *conn)
|
||||
if (ssl_max_ver == -1)
|
||||
{
|
||||
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);
|
||||
SSL_CTX_free(SSL_context);
|
||||
return -1;
|
||||
@ -891,7 +891,7 @@ initialize_SSL(PGconn *conn)
|
||||
char *err = SSLerrmessage(ERR_get_error());
|
||||
|
||||
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);
|
||||
SSLerrfree(err);
|
||||
SSL_CTX_free(SSL_context);
|
||||
|
Loading…
Reference in New Issue
Block a user