aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-06-04 11:41:16 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-06-04 11:41:16 -0400
commit55cd9a8ff6a7cc244a33776c447cb0f0f10b6b94 (patch)
treebe270dbf731665340705af6a82071b456c3a5efc /src/backend/utils/adt/json.c
parent8a7cd781ee9486584c1262b0f8598b1162ceb73a (diff)
downloadpostgresql-55cd9a8ff6a7cc244a33776c447cb0f0f10b6b94.tar.gz
postgresql-55cd9a8ff6a7cc244a33776c447cb0f0f10b6b94.zip
Assorted translatable string fixes
Mark our rusage reportage string translatable; remove quotes from type names; unify formatting of very similar messages.
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 c73044b806d..2b6a8391d8b 100644
--- a/src/backend/utils/adt/json.c
+++ b/src/backend/utils/adt/json.c
@@ -2003,7 +2003,7 @@ json_object_agg_transfn(PG_FUNCTION_ARGS)
if (arg_type == InvalidOid)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("could not determine data type for argument 1")));
+ errmsg("could not determine data type for argument %d", 1)));
json_categorize_type(arg_type, &state->key_category,
&state->key_output_func);
@@ -2013,7 +2013,7 @@ json_object_agg_transfn(PG_FUNCTION_ARGS)
if (arg_type == InvalidOid)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("could not determine data type for argument 2")));
+ errmsg("could not determine data type for argument %d", 2)));
json_categorize_type(arg_type, &state->val_category,
&state->val_output_func);