From: Heikki Linnakangas Date: Tue, 9 Apr 2024 05:06:31 +0000 (+0300) Subject: libpq error message fixes X-Git-Tag: REL_17_BETA1~302 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=baa82b78dc97459b6d2a5843cc77fcf755809269;p=postgresql.git libpq error message fixes Remove stray paren, capitalize SSL and ALPN. Author: Kyotaro Horiguchi Discussion: https://www.postgresql.org/message-id/20240409.104613.1653854506705708036.horikyota.ntt@gmail.com --- diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 4bd523ec6e3..e35bdc40361 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -2927,7 +2927,7 @@ keep_going: /* We will come back to here until there is if (conn->raddr.addr.ss_family == AF_UNIX) { libpq_append_conn_error(conn, - "GSSAPI encryption required but it is not supported over a local socket)"); + "GSSAPI encryption required but it is not supported over a local socket"); goto error_return; } if (conn->gcred == GSS_C_NO_CREDENTIAL) diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c index d559ed86e8d..c98cfa60848 100644 --- a/src/interfaces/libpq/fe-secure-openssl.c +++ b/src/interfaces/libpq/fe-secure-openssl.c @@ -1246,7 +1246,7 @@ initialize_SSL(PGconn *conn) { char *err = SSLerrmessage(ERR_get_error()); - libpq_append_conn_error(conn, "could not set ssl alpn extension: %s", err); + libpq_append_conn_error(conn, "could not set SSL ALPN extension: %s", err); SSLerrfree(err); return -1; }