aboutsummaryrefslogtreecommitdiff
path: root/src/common/jsonapi.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-05-23 09:22:28 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-05-23 09:22:28 +0200
commitda32f5c4bca7f3447b869de2afbbfa0b74443d45 (patch)
tree0e324bbb891a220296c90f55da503528778de337 /src/common/jsonapi.c
parent6ef762938eead1a42024b219311f6ede5dc2104a (diff)
downloadpostgresql-da32f5c4bca7f3447b869de2afbbfa0b74443d45.tar.gz
postgresql-da32f5c4bca7f3447b869de2afbbfa0b74443d45.zip
jsonapi: Some message style fixes
Add missing punctuation, and un-gettext-mark an internal error.
Diffstat (limited to 'src/common/jsonapi.c')
-rw-r--r--src/common/jsonapi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/jsonapi.c b/src/common/jsonapi.c
index a8764302e4d..172310f6f19 100644
--- a/src/common/jsonapi.c
+++ b/src/common/jsonapi.c
@@ -2118,11 +2118,11 @@ json_errdetail(JsonParseErrorType error, JsonLexContext *lex)
break;
case JSON_INVALID_LEXER_TYPE:
if (lex->incremental)
- return _("Recursive descent parser cannot use incremental lexer");
+ return _("Recursive descent parser cannot use incremental lexer.");
else
- return _("Incremental parser requires incremental lexer");
+ return _("Incremental parser requires incremental lexer.");
case JSON_NESTING_TOO_DEEP:
- return (_("JSON nested too deep, maximum permitted depth is 6400"));
+ return (_("JSON nested too deep, maximum permitted depth is 6400."));
case JSON_ESCAPING_INVALID:
json_token_error(lex, "Escape sequence \"\\%.*s\" is invalid.");
break;
@@ -2198,7 +2198,7 @@ json_errdetail(JsonParseErrorType error, JsonLexContext *lex)
*/
if (lex->errormsg->len == 0)
appendStringInfo(lex->errormsg,
- _("unexpected json parse error type: %d"),
+ "unexpected json parse error type: %d",
(int) error);
return lex->errormsg->data;