Changeset 273


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

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

Location:
libyaml/branches/stable/src
Files:
2 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        } 
  • libyaml/branches/stable/src/scanner.c

    r243 r273  
    10791079                return yaml_parser_set_scanner_error(parser, 
    10801080                        "while scanning a simple key", simple_key->mark, 
    1081                         "could not found expected ':'"); 
     1081                        "could not find expected ':'"); 
    10821082            } 
    10831083 
     
    11481148            return yaml_parser_set_scanner_error(parser, 
    11491149                    "while scanning a simple key", simple_key->mark, 
    1150                     "could not found expected ':'"); 
     1150                    "could not find expected ':'"); 
    11511151        } 
    11521152    } 
     
    20732073    if (!IS_BREAKZ(parser->buffer)) { 
    20742074        yaml_parser_set_scanner_error(parser, "while scanning a directive", 
    2075                 start_mark, "did not found expected comment or line break"); 
     2075                start_mark, "did not find expected comment or line break"); 
    20762076        goto error; 
    20772077    } 
     
    21272127    if (string.start == string.pointer) { 
    21282128        yaml_parser_set_scanner_error(parser, "while scanning a directive", 
    2129                 start_mark, "cannot found expected directive name"); 
     2129                start_mark, "could not find expected directive name"); 
    21302130        goto error; 
    21312131    } 
     
    24732473    if (!IS_BLANKZ(parser->buffer)) { 
    24742474        yaml_parser_set_scanner_error(parser, "while scanning a tag", 
    2475                 start_mark, "did not found expected whitespace or line break"); 
     2475                start_mark, "did not find expected whitespace or line break"); 
    24762476        goto error; 
    24772477    } 
     
    28272827    if (!IS_BREAKZ(parser->buffer)) { 
    28282828        yaml_parser_set_scanner_error(parser, "while scanning a block scalar", 
    2829                 start_mark, "did not found expected comment or line break"); 
     2829                start_mark, "did not find expected comment or line break"); 
    28302830        goto error; 
    28312831    } 
Note: See TracChangeset for help on using the changeset viewer.