Ignore:
Timestamp:
07/31/08 16:41:02 (6 years ago)
Author:
xi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libyaml/branches/stable/src/parser.c

    r250 r273  
    320320    if (token->type != YAML_STREAM_START_TOKEN) { 
    321321        return yaml_parser_set_parser_error(parser, 
    322                 "did not found expected <stream-start>", token->start_mark); 
     322                "did not find expected <stream-start>", token->start_mark); 
    323323    } 
    324324 
     
    394394        if (token->type != YAML_DOCUMENT_START_TOKEN) { 
    395395            yaml_parser_set_parser_error(parser, 
    396                     "did not found expected <document start>", token->start_mark); 
     396                    "did not find expected <document start>", token->start_mark); 
    397397            goto error; 
    398398        } 
     
    702702                        (block ? "while parsing a block node" 
    703703                         : "while parsing a flow node"), start_mark, 
    704                         "did not found expected node content", token->start_mark); 
     704                        "did not find expected node content", token->start_mark); 
    705705                goto error; 
    706706            } 
     
    772772        return yaml_parser_set_parser_error_context(parser, 
    773773                "while parsing a block collection", POP(parser, parser->marks), 
    774                 "did not found expected '-' indicator", token->start_mark); 
     774                "did not find expected '-' indicator", token->start_mark); 
    775775    } 
    776776} 
     
    882882        return yaml_parser_set_parser_error_context(parser, 
    883883                "while parsing a block mapping", POP(parser, parser->marks), 
    884                 "did not found expected key", token->start_mark); 
     884                "did not find expected key", token->start_mark); 
    885885    } 
    886886} 
     
    976976                return yaml_parser_set_parser_error_context(parser, 
    977977                        "while parsing a flow sequence", POP(parser, parser->marks), 
    978                         "did not found expected ',' or ']'", token->start_mark); 
     978                        "did not find expected ',' or ']'", token->start_mark); 
    979979            } 
    980980        } 
     
    11281128                return yaml_parser_set_parser_error_context(parser, 
    11291129                        "while parsing a flow mapping", POP(parser, parser->marks), 
    1130                         "did not found expected ',' or '}'", token->start_mark); 
     1130                        "did not find expected ',' or '}'", token->start_mark); 
    11311131            } 
    11321132        } 
Note: See TracChangeset for help on using the changeset viewer.