aboutsummaryrefslogtreecommitdiff
path: root/src/common/jsonapi.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2022-09-28 17:14:53 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2022-09-28 17:14:53 +0200
commit1dd468c348095010e07eeb844e2e344ad63a52ef (patch)
tree3007cdd8df2dcf51a7166a7b97b37375a5a90222 /src/common/jsonapi.c
parent8c17c86154704a89c46c6a9575cf7d792f357c9c (diff)
downloadpostgresql-1dd468c348095010e07eeb844e2e344ad63a52ef.tar.gz
postgresql-1dd468c348095010e07eeb844e2e344ad63a52ef.zip
Change some errdetail() to errdetail_internal()
This prevents marking the argument string for translation for gettext, and it also prevents the given string (which is already translated) from being translated at runtime. Also, mark the strings used as arguments to check_rolespec_name for translation. Backpatch all the way back as appropriate. None of this is caught by any tests (necessarily so), so I verified it manually.
Diffstat (limited to 'src/common/jsonapi.c')
-rw-r--r--src/common/jsonapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/jsonapi.c b/src/common/jsonapi.c
index 6fe17a3d378..b296ba7d67b 100644
--- a/src/common/jsonapi.c
+++ b/src/common/jsonapi.c
@@ -1050,7 +1050,7 @@ report_parse_error(JsonParseContext ctx, JsonLexContext *lex)
}
/*
- * Construct a detail message for a JSON error.
+ * Construct an (already translated) detail message for a JSON error.
*/
char *
json_errdetail(JsonParseErrorType error, JsonLexContext *lex)