Thanks to visit codestin.com
Credit goes to github.com

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/[email protected]
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)