]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
don't add the general 'parse error' message if an error has already been printed
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 14 Aug 2012 09:54:27 +0000 (11:54 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 14 Aug 2012 09:54:27 +0000 (11:54 +0200)
parser.c

index 7a69276d266ddef38f1388e1d3857835e5fcb322..c9b434723f3e4ef54d5e3ad8853e0c3f52d239f3 100644 (file)
--- 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);