Salome HOME
Merge branch 'Dev_2.1.0' of salome:modules/shaper into Dev_2.1.0
[modules/shaper.git] / src / GeomValidators / GeomValidators_BooleanArguments.cpp
index a5caa03fa019bcbe5e039ae1941b88981989e30e..b54344510c0a0be1fc56640cfabd15685172529f 100644 (file)
@@ -15,6 +15,7 @@ bool GeomValidators_BooleanArguments::isValid(const std::shared_ptr<ModelAPI_Fea
                                               std::string& theError) const
 {
   if(theArguments.size() != 3) {
+    theError = "Wrong number of arguments (expected 3).";
     return false;
   }
 
@@ -46,6 +47,7 @@ bool GeomValidators_BooleanArguments::isValid(const std::shared_ptr<ModelAPI_Fea
     return true;
   }
 
+  theError = "Not enough arguments";
   return false;
 }