1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +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

@ -2192,7 +2192,9 @@ json_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 json_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.",
"json_build_object()")));
result = makeStringInfo();