From: Wolfgang (Blub) Bumiller Date: Tue, 14 Aug 2012 09:54:27 +0000 (+0200) Subject: don't add the general 'parse error' message if an error has already been printed X-Git-Tag: 0.1-rc1~323 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=104e9bce923b67be8812cc0870660250ae3f5b83;p=xonotic%2Fgmqcc.git don't add the general 'parse error' message if an error has already been printed --- diff --git a/parser.c b/parser.c index 7a69276..c9b4347 100644 --- a/parser.c +++ b/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);