libpq-oauth: Don't translate internal errors
authorJacob Champion <[email protected]>
Mon, 15 Dec 2025 21:21:00 +0000 (13:21 -0800)
committerJacob Champion <[email protected]>
Mon, 15 Dec 2025 21:21:00 +0000 (13:21 -0800)
commit301a1dcf00c82350aad642b872d263730cd87f8f
tree7cd253fe0f8dd00ce82bb37cde3b027c506842bf
parentea3370b18ebea536a100ae6dce25add3f5eb6565
libpq-oauth: Don't translate internal errors

Some error messages are generated when OAuth multiplexer operations fail
unexpectedly in the client. Álvaro pointed out that these are both
difficult to translate idiomatically (as they use internal terminology
heavily) and of dubious translation value to end users (since they're
going to need to get developer help anyway). The response parsing engine
has a similar issue.

Remove these from the translation files by introducing internal variants
of actx_error() and oauth_parse_set_error().

Suggested-by: Álvaro Herrera <[email protected]>
Reviewed-by: Álvaro Herrera <[email protected]>
Discussion: https://postgr.es/m/CAOYmi%2BkQQ8vpRcoSrA5EQ98Wa3G6jFj1yRHs6mh1V7ohkTC7JA%40mail.gmail.com
Backpatch-through: 18
src/interfaces/libpq-oauth/oauth-curl.c