Skip to content
Snippets Groups Projects
Commit d7451ce504dd authored by Kirill Simonov's avatar Kirill Simonov
Browse files

Fixed grammar in error messages (from YAML::XS::LibYAML).

parent 9a0085d4894c
No related branches found
No related tags found
No related merge requests found
......@@ -319,7 +319,7 @@
if (token->type != YAML_STREAM_START_TOKEN) {
return yaml_parser_set_parser_error(parser,
"did not found expected <stream-start>", token->start_mark);
"did not find expected <stream-start>", token->start_mark);
}
parser->state = YAML_PARSE_IMPLICIT_DOCUMENT_START_STATE;
......@@ -393,7 +393,7 @@
if (!token) goto error;
if (token->type != YAML_DOCUMENT_START_TOKEN) {
yaml_parser_set_parser_error(parser,
"did not found expected <document start>", token->start_mark);
"did not find expected <document start>", token->start_mark);
goto error;
}
if (!PUSH(parser, parser->states, YAML_PARSE_DOCUMENT_END_STATE))
......@@ -701,7 +701,7 @@
yaml_parser_set_parser_error_context(parser,
(block ? "while parsing a block node"
: "while parsing a flow node"), start_mark,
"did not found expected node content", token->start_mark);
"did not find expected node content", token->start_mark);
goto error;
}
}
......@@ -771,7 +771,7 @@
{
return yaml_parser_set_parser_error_context(parser,
"while parsing a block collection", POP(parser, parser->marks),
"did not found expected '-' indicator", token->start_mark);
"did not find expected '-' indicator", token->start_mark);
}
}
......@@ -881,7 +881,7 @@
{
return yaml_parser_set_parser_error_context(parser,
"while parsing a block mapping", POP(parser, parser->marks),
"did not found expected key", token->start_mark);
"did not find expected key", token->start_mark);
}
}
......@@ -975,7 +975,7 @@
else {
return yaml_parser_set_parser_error_context(parser,
"while parsing a flow sequence", POP(parser, parser->marks),
"did not found expected ',' or ']'", token->start_mark);
"did not find expected ',' or ']'", token->start_mark);
}
}
......@@ -1127,7 +1127,7 @@
else {
return yaml_parser_set_parser_error_context(parser,
"while parsing a flow mapping", POP(parser, parser->marks),
"did not found expected ',' or '}'", token->start_mark);
"did not find expected ',' or '}'", token->start_mark);
}
}
......
......@@ -1078,7 +1078,7 @@
if (simple_key->required) {
return yaml_parser_set_scanner_error(parser,
"while scanning a simple key", simple_key->mark,
"could not found expected ':'");
"could not find expected ':'");
}
simple_key->possible = 0;
......@@ -1147,7 +1147,7 @@
if (simple_key->required) {
return yaml_parser_set_scanner_error(parser,
"while scanning a simple key", simple_key->mark,
"could not found expected ':'");
"could not find expected ':'");
}
}
......@@ -2072,7 +2072,7 @@
if (!IS_BREAKZ(parser->buffer)) {
yaml_parser_set_scanner_error(parser, "while scanning a directive",
start_mark, "did not found expected comment or line break");
start_mark, "did not find expected comment or line break");
goto error;
}
......@@ -2126,7 +2126,7 @@
if (string.start == string.pointer) {
yaml_parser_set_scanner_error(parser, "while scanning a directive",
start_mark, "cannot found expected directive name");
start_mark, "could not find expected directive name");
goto error;
}
......@@ -2472,7 +2472,7 @@
if (!IS_BLANKZ(parser->buffer)) {
yaml_parser_set_scanner_error(parser, "while scanning a tag",
start_mark, "did not found expected whitespace or line break");
start_mark, "did not find expected whitespace or line break");
goto error;
}
......@@ -2826,7 +2826,7 @@
if (!IS_BREAKZ(parser->buffer)) {
yaml_parser_set_scanner_error(parser, "while scanning a block scalar",
start_mark, "did not found expected comment or line break");
start_mark, "did not find expected comment or line break");
goto error;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment