mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-21 02:10:53 +00:00
don't add the general 'parse error' message if an error has already been printed
This commit is contained in:
parent
4dad7c7d50
commit
104e9bce92
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -1752,7 +1752,7 @@ bool parser_compile(const char *filename)
|
|||
if (!parser_do(parser)) {
|
||||
if (parser->tok == TOKEN_EOF)
|
||||
parseerror(parser, "unexpected eof");
|
||||
else
|
||||
else if (!parser->errors)
|
||||
parseerror(parser, "parse error\n");
|
||||
lex_close(parser->lex);
|
||||
mem_d(parser);
|
||||
|
|
Loading…
Reference in a new issue