mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
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
This commit is contained in:
@ -1457,8 +1457,8 @@ connectOptions2(PGconn *conn)
|
|||||||
case 'r': /* "require" */
|
case 'r': /* "require" */
|
||||||
case 'v': /* "verify-ca" or "verify-full" */
|
case 'v': /* "verify-ca" or "verify-full" */
|
||||||
conn->status = CONNECTION_BAD;
|
conn->status = CONNECTION_BAD;
|
||||||
libpq_append_conn_error(conn, "sslmode value \"%s\" invalid when SSL support is not compiled in",
|
libpq_append_conn_error(conn, "%s value \"%s\" invalid when SSL support is not compiled in",
|
||||||
conn->sslmode);
|
"sslmode", conn->sslmode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user