parser error message modified and bug 14039 fixed
[scilab.git] / scilab / modules / ast / src / cpp / parse / parsescilab.cpp
index a18e707..65c642c 100644 (file)
@@ -169,7 +169,7 @@ static void print_rules(const std::string& _parent, const double _value)
     {                                                           \
         if(ParserSingleInstance::stopOnFirstError())            \
         {                                                       \
-            return ParserSingleInstance::getExitStatus();       \
+            ParserSingleInstance::setExitStatus(Parser::ParserStatus::Failed);       \
         }                                                       \
     }