Skip to content

Commit a0fe90e

Browse files
committed
libpq: Add missing gettext markers
Follow-up to 87d2801: That commit restored some lost error messages, but they ended up in a place where xgettext wouldn't find them. Rather than elevating ENCRYPTION_NEGOTIATION_FAILED() to a gettext trigger, it's easiest for now to put in some explicit libpq_gettext() calls in the couple of call sites.
1 parent d112ea4 commit a0fe90e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-connect.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3519,7 +3519,7 @@ PQconnectPoll(PGconn *conn)
35193519
* continue without SSL, we can proceed using this
35203520
* connection. Otherwise return with an error.
35213521
*/
3522-
ENCRYPTION_NEGOTIATION_FAILED("server does not support SSL, but SSL was required");
3522+
ENCRYPTION_NEGOTIATION_FAILED(libpq_gettext("server does not support SSL, but SSL was required"));
35233523
}
35243524
else if (SSLok == 'E')
35253525
{
@@ -3640,7 +3640,7 @@ PQconnectPoll(PGconn *conn)
36403640
* continue without GSS, we can proceed using this
36413641
* connection. Otherwise return with an error.
36423642
*/
3643-
ENCRYPTION_NEGOTIATION_FAILED("server doesn't support GSSAPI encryption, but it was required");
3643+
ENCRYPTION_NEGOTIATION_FAILED(libpq_gettext("server doesn't support GSSAPI encryption, but it was required"));
36443644
}
36453645
else if (gss_ok != 'G')
36463646
{

0 commit comments

Comments
 (0)