aboutsummaryrefslogtreecommitdiff
path: root/src/common/jsonapi.c
diff options
context:
space:
mode:
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;