aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-08-16 16:17:00 +0200
committerPeter Eisentraut <peter@eisentraut.org>2023-08-16 16:18:49 +0200
commitc672262779833a6b58cf5a4e85a9b76efd660cb7 (patch)
treed7a54276b5af784bb7273539d1ae82fa5380278a /src/backend/utils/adt/json.c
parent842b65905046be8a979a67484c9fd4110e4e2dfe (diff)
downloadpostgresql-c672262779833a6b58cf5a4e85a9b76efd660cb7.tar.gz
postgresql-c672262779833a6b58cf5a4e85a9b76efd660cb7.zip
Unify some error messages
We had essentially the same error in several different wordings. Unify that.
Diffstat (limited to 'src/backend/utils/adt/json.c')
-rw-r--r--src/backend/utils/adt/json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/json.c b/src/backend/utils/adt/json.c
index 49080e5fbff..7205f4adca8 100644
--- a/src/backend/utils/adt/json.c
+++ b/src/backend/utils/adt/json.c
@@ -1186,7 +1186,7 @@ json_object_agg_transfn_worker(FunctionCallInfo fcinfo,
if (!json_unique_check_key(&state->unique_check.check, key, 0))
ereport(ERROR,
errcode(ERRCODE_DUPLICATE_JSON_OBJECT_KEY_VALUE),
- errmsg("duplicate JSON key %s", key));
+ errmsg("duplicate JSON object key value: %s", key));
if (skip)
PG_RETURN_POINTER(state);
@@ -1349,7 +1349,7 @@ json_build_object_worker(int nargs, Datum *args, bool *nulls, Oid *types,
if (!json_unique_check_key(&unique_check.check, key, 0))
ereport(ERROR,
errcode(ERRCODE_DUPLICATE_JSON_OBJECT_KEY_VALUE),
- errmsg("duplicate JSON key %s", key));
+ errmsg("duplicate JSON object key value: %s", key));
if (skip)
continue;