diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-03-24 10:14:33 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-03-24 10:14:33 +0900 |
commit | bcaa1fafc82f2fd124e0ed39e7c94a7918548224 (patch) | |
tree | 0282291e6bb53aca491d580cb1a4fea0701300af /src/interfaces/libpq/fe-connect.c | |
parent | 8089517ab8b547daab78f404f99eb48fba91ee9d (diff) | |
download | postgresql-bcaa1fafc82f2fd124e0ed39e7c94a7918548224.tar.gz |
Rewrite error message related to sslmode in libpq
The same error message will be used for a different option, to be
introduced in a separate patch. Reshaping the error message as done
here saves in translation.
Extracted from a larger patch by the same author.
Author: Jacob Champion
Discussion: https://postgr.es/m/9e5a8ccddb8355ea9fa4b75a1e3a9edc88a70cd3.camel@vmware.com
Diffstat (limited to 'src/interfaces/libpq/fe-connect.c')
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index b9f899c552..7d2be56664 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -1457,8 +1457,8 @@ connectOptions2(PGconn *conn) case 'r': /* "require" */ case 'v': /* "verify-ca" or "verify-full" */ conn->status = CONNECTION_BAD; - libpq_append_conn_error(conn, "sslmode value \"%s\" invalid when SSL support is not compiled in", - conn->sslmode); + libpq_append_conn_error(conn, "%s value \"%s\" invalid when SSL support is not compiled in", + "sslmode", conn->sslmode); return false; } #endif |