mkclass should return exit code 1 when compilation fails.

Fixes #6292
This commit is contained in:
Gunnar Beutner 2014-05-25 16:30:30 +02:00
parent 632026cd9f
commit f85eacb5bf
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ void yyerror(YYLTYPE *locp, ClassCompiler *, const char *err)
std::cerr << "in " << locp->path << " at " << locp->first_line << ":" << locp->first_column << "-" << locp->last_line << ":" << locp->last_column << ": "
<< err
<< std::endl;
exit(1);
}
int yyparse(ClassCompiler *context);