diff options
Diffstat (limited to 'parser.y')
-rw-r--r-- | parser.y | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -118,7 +118,15 @@ struct lexer_param { void yyerror(YYLTYPE* loc, block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr, const char *s){ (*errors)++; - locfile_locate(locations, *loc, "error: %s", s); + if (strstr(s, "unexpected")) { +#ifdef WIN32 + locfile_locate(locations, *loc, "error: %s (Windows cmd shell quoting issues?)", s); +#else + locfile_locate(locations, *loc, "error: %s (Unix shell quoting issues?)", s); +#endif + } else { + locfile_locate(locations, *loc, "error: %s", s); + } } int yylex(YYSTYPE* yylval, YYLTYPE* yylloc, block* answer, int* errors, |