1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-15 19:21:59 +03:00

Unify error messages

... for translatability purposes.
This commit is contained in:
Alvaro Herrera
2019-04-24 09:26:13 -04:00
parent 5c47049180
commit 0a999e1290
6 changed files with 27 additions and 10 deletions

View File

@ -1155,7 +1155,9 @@ jsonb_build_object(PG_FUNCTION_ARGS)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("argument list must have even number of elements"),
errhint("The arguments of jsonb_build_object() must consist of alternating keys and values.")));
/* translator: %s is a SQL function name */
errhint("The arguments of %s must consist of alternating keys and values.",
"jsonb_build_object()")));
memset(&result, 0, sizeof(JsonbInState));