X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Validator.cpp;h=6795e43e1b2b13cb7387d4ff8e3515534a25ac4b;hb=a83e22046c5fb877969fa8879e42491d4054f198;hp=4f2041c36bfd7d70837317c2d39b2a492a99f975;hpb=cadc20ebc46d01b4d8ac0e91cc8e6fd1066867cb;p=modules%2Fshaper.git diff --git a/src/Model/Model_Validator.cpp b/src/Model/Model_Validator.cpp index 4f2041c36..6795e43e1 100644 --- a/src/Model/Model_Validator.cpp +++ b/src/Model/Model_Validator.cpp @@ -179,7 +179,7 @@ bool Model_ValidatorsFactory::validate(const std::shared_ptr& if (!aFValidator->isValid(theFeature, anArguments, anError)) { if (anError.empty()) anError = "Unknown error."; - anError = "Feature invalidated by \"" + aValidatorID + "\" with error: " + anError; + anError = aValidatorID + ": " + anError; theFeature->setError(anError, false); theFeature->data()->execState(ModelAPI_StateInvalidArgument); return false; @@ -206,7 +206,7 @@ bool Model_ValidatorsFactory::validate(const std::shared_ptr& // } // } //} - + // check all attributes for validity // Validity of data is checked by "Model_FeatureValidator" (kDefaultId) // if (!aData || !aData->isValid()) @@ -223,7 +223,7 @@ bool Model_ValidatorsFactory::validate(const std::shared_ptr& if (!validate(anAttribute, aValidatorID, anError)) { if (anError.empty()) anError = "Unknown error."; - anError = "Attribute \"" + anAttributeID + "\" invalidated by \"" + aValidatorID + "\" with error: " + anError; + anError = anAttributeID + " - " + aValidatorID + ": " + anError; theFeature->setError(anError, false); theFeature->data()->execState(ModelAPI_StateInvalidArgument); return false;