From: Jacob Champion Date: Fri, 29 May 2026 18:34:03 +0000 (-0700) Subject: libpq: Fix grease error message style X-Git-Tag: REL_19_BETA1~19 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5ca41e4125e9822816a8c1fb79ec19077360b861;p=thirdparty%2Fpostgresql.git libpq: Fix grease error message style Double-quote the protocol extension name, and move it out of line with a %s specifier, to help with translation. Fixes up 4966bd3ed. Reported-by: Kyotaro Horiguchi Suggested-by: Daniel Gustafsson Discussion: https://postgr.es/m/20260528.121622.1662808269492494574.horikyota.ntt%40gmail.com --- diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c index 840e018cd18..78ffb1025d0 100644 --- a/src/interfaces/libpq/fe-protocol3.c +++ b/src/interfaces/libpq/fe-protocol3.c @@ -1560,7 +1560,8 @@ pqGetNegotiateProtocolVersion3(PGconn *conn) */ if (expect_test_protocol_negotiation && !found_test_protocol_negotiation) { - libpq_append_conn_error(conn, "server did not report the unsupported `_pq_.test_protocol_negotiation` parameter in its protocol negotiation message"); + libpq_append_conn_error(conn, "server did not report the unsupported \"%s\" parameter in its protocol negotiation message", + "_pq_.test_protocol_negotiation"); goto failure; }