mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
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:
parent
478a9249a0
commit
634a544dca
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue