]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
The proper way to deal with error messages which did not cause the parser to bail...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 28 Oct 2012 14:48:51 +0000 (15:48 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 28 Oct 2012 14:48:51 +0000 (15:48 +0100)
parser.c

index 017df19c40c2f626544ecfd4fe5f46a10eac49e2..09f9b64fde1111f33412856092577a24aacd8dd1 100644 (file)
--- 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;