Skip to content

Commit da32f5c

Browse files
committed
jsonapi: Some message style fixes
Add missing punctuation, and un-gettext-mark an internal error.
1 parent 6ef7629 commit da32f5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common/jsonapi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,11 +2118,11 @@ json_errdetail(JsonParseErrorType error, JsonLexContext *lex)
21182118
break;
21192119
case JSON_INVALID_LEXER_TYPE:
21202120
if (lex->incremental)
2121-
return _("Recursive descent parser cannot use incremental lexer");
2121+
return _("Recursive descent parser cannot use incremental lexer.");
21222122
else
2123-
return _("Incremental parser requires incremental lexer");
2123+
return _("Incremental parser requires incremental lexer.");
21242124
case JSON_NESTING_TOO_DEEP:
2125-
return (_("JSON nested too deep, maximum permitted depth is 6400"));
2125+
return (_("JSON nested too deep, maximum permitted depth is 6400."));
21262126
case JSON_ESCAPING_INVALID:
21272127
json_token_error(lex, "Escape sequence \"\\%.*s\" is invalid.");
21282128
break;
@@ -2198,7 +2198,7 @@ json_errdetail(JsonParseErrorType error, JsonLexContext *lex)
21982198
*/
21992199
if (lex->errormsg->len == 0)
22002200
appendStringInfo(lex->errormsg,
2201-
_("unexpected json parse error type: %d"),
2201+
"unexpected json parse error type: %d",
22022202
(int) error);
22032203

22042204
return lex->errormsg->data;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy