Skip to content

Commit bcaa1fa

Browse files
committed
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
1 parent 8089517 commit bcaa1fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,8 +1457,8 @@ connectOptions2(PGconn *conn)
14571457
case 'r': /* "require" */
14581458
case 'v': /* "verify-ca" or "verify-full" */
14591459
conn->status = CONNECTION_BAD;
1460-
libpq_append_conn_error(conn, "sslmode value \"%s\" invalid when SSL support is not compiled in",
1461-
conn->sslmode);
1460+
libpq_append_conn_error(conn, "%s value \"%s\" invalid when SSL support is not compiled in",
1461+
"sslmode", conn->sslmode);
14621462
return false;
14631463
}
14641464
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy