diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2023-04-21 10:23:38 +0200 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2023-04-21 10:23:38 +0200 |
commit | 60ce452729239f10ebbd0803a0ecc460f7f9238a (patch) | |
tree | 5dfb64ef29040c58ac36f5fb3d0ceed96d790818 /src/test | |
parent | 0a16512d40a58c5046c2ab4ca7eabb8393f31c18 (diff) | |
download | postgresql-60ce452729239f10ebbd0803a0ecc460f7f9238a.tar.gz |
Make libpq error messages consistent for translation
The errormessage for an incorrect require_auth method wasn't using the
common "invalid %s value" errormessage which lessens the burden on our
translators. Fix by changing to that format to make use of existing
translations and to make error messages consistent in wording.
Reported and fixed by Gurjeet Singh with some tweaking by myself.
Author: Gurjeet Singh <gurjeet@singh.im>
Discussion: https://postgr.es/m/CABwTF4Xu3g9zohJ9obu8m7MKbf8g63NgpRDjwqPHQgAtB+Gb8Q@mail.gmail.com
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/authentication/t/001_password.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/authentication/t/001_password.pl b/src/test/authentication/t/001_password.pl index d7362a4d3e..1306fd05d2 100644 --- a/src/test/authentication/t/001_password.pl +++ b/src/test/authentication/t/001_password.pl @@ -264,7 +264,7 @@ $node->connect_fails( $node->connect_fails( "user=scram_role require_auth=none,abcdefg", "unknown require_auth methods are rejected", - expected_stderr => qr/invalid require_auth method: "abcdefg"/); + expected_stderr => qr/invalid require_auth value: "abcdefg"/); # For plain "password" method, all users should also be able to connect. reset_pg_hba($node, 'all', 'all', 'password'); |