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 <horikyota.ntt@gmail.com>
Suggested-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/20260528.121622.1662808269492494574.horikyota.ntt%40gmail.com
This commit is contained in:
Jacob Champion 2026-05-29 11:34:03 -07:00
parent b1901e2895
commit 5ca41e4125

View file

@ -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;
}