From: Wolfgang (Blub) Bumiller Date: Sun, 28 Oct 2012 14:48:51 +0000 (+0100) Subject: The proper way to deal with error messages which did not cause the parser to bail... X-Git-Tag: 0.1-rc1~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=634a544dca48c0e5eb926b81c428dfba5061e415;p=xonotic%2Fgmqcc.git 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... --- diff --git a/parser.c b/parser.c index 017df19..09f9b64 100644 --- a/parser.c +++ b/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;