mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Fix some errhint and errdetail strings missing a period
As per the error message style guide of the documentation, those should be full sentences. Author: Daniel Gustafsson Reviewed-by: Michael Paquier, Álvaro Herrera Discussion: https://1E8D49B4-16BC-4420-B4ED-58501D9E076B@yesql.se
This commit is contained in:
@ -4993,7 +4993,7 @@ parse_jsonb_index_flags(Jsonb *jb)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("flag array element is not a string"),
|
||||
errhint("Possible values are: \"string\", \"numeric\", \"boolean\", \"key\", and \"all\"")));
|
||||
errhint("Possible values are: \"string\", \"numeric\", \"boolean\", \"key\", and \"all\".")));
|
||||
|
||||
if (v.val.string.len == 3 &&
|
||||
pg_strncasecmp(v.val.string.val, "all", 3) == 0)
|
||||
@ -5015,7 +5015,7 @@ parse_jsonb_index_flags(Jsonb *jb)
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("wrong flag in flag array: \"%s\"",
|
||||
pnstrdup(v.val.string.val, v.val.string.len)),
|
||||
errhint("Possible values are: \"string\", \"numeric\", \"boolean\", \"key\", and \"all\"")));
|
||||
errhint("Possible values are: \"string\", \"numeric\", \"boolean\", \"key\", and \"all\".")));
|
||||
}
|
||||
|
||||
/* expect end of array now */
|
||||
|
Reference in New Issue
Block a user