The proper way to deal with error messages which did not cause the parser to bail out early is this, not a 'parse error'-error...

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-10-28 15:48:51 +01:00
parent 478a9249a0
commit 634a544dca

View file

@ -2850,7 +2850,7 @@ bool parser_compile(const char *filename)
if (parser->tok == TOKEN_EOF)
parseerror(parser, "unexpected eof");
else if (!parser->errors)
parseerror(parser, "parse error");
parseerror(parser, "there have been errors, bailing out");
lex_close(parser->lex);
parser->lex = NULL;
return false;