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