From 634a544dca48c0e5eb926b81c428dfba5061e415 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 28 Oct 2012 15:48:51 +0100 Subject: [PATCH] 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... --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2