]> granicus.if.org Git - icinga2/commitdiff
mkclass should return exit code 1 when compilation fails.
authorGunnar Beutner <gunnar.beutner@netways.de>
Sun, 25 May 2014 14:30:30 +0000 (16:30 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sun, 25 May 2014 14:30:30 +0000 (16:30 +0200)
Fixes #6292

tools/mkclass/class_parser.yy

index a9180f012504a274f6571a5e1b26a9de29f51c97..1c45c4810071f29db0d0c78167cb2533cc055f96 100644 (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);