libpq error message fixes
authorHeikki Linnakangas <[email protected]>
Tue, 9 Apr 2024 05:06:31 +0000 (08:06 +0300)
committerHeikki Linnakangas <[email protected]>
Tue, 9 Apr 2024 05:06:31 +0000 (08:06 +0300)
Remove stray paren, capitalize SSL and ALPN.

Author: Kyotaro Horiguchi
Discussion: https://www.postgresql.org/message-id/20240409.104613.1653854506705708036[email protected]

src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-secure-openssl.c

index 4bd523ec6e34df16e9dca58a33ce023cbef780de..e35bdc40361dd773d808534474b8befef9bdcbcc 100644 (file)
@@ -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)
index d559ed86e8d5d74f962d9836d1e62a29df44f041..c98cfa60848e575f4116dfe126762548f8c12c23 100644 (file)
@@ -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;
        }