summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorDaniel Gustafsson2023-04-21 08:23:38 +0000
committerDaniel Gustafsson2023-04-21 08:23:38 +0000
commit60ce452729239f10ebbd0803a0ecc460f7f9238a (patch)
tree5dfb64ef29040c58ac36f5fb3d0ceed96d790818 /src/interfaces
parent0a16512d40a58c5046c2ab4ca7eabb8393f31c18 (diff)
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 <[email protected]> Discussion: https://postgr.es/m/CABwTF4Xu3g9zohJ9obu8m7MKbf8g63NgpRDjwqPHQgAtB+Gb8Q@mail.gmail.com
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/libpq/fe-connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index fcd3d0d9a35..c713d11d302 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -1407,8 +1407,8 @@ connectOptions2(PGconn *conn)
else
{
conn->status = CONNECTION_BAD;
- libpq_append_conn_error(conn, "invalid require_auth method: \"%s\"",
- method);
+ libpq_append_conn_error(conn, "invalid %s value: \"%s\"",
+ "require_auth", method);
free(part);
return false;