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;
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;
if (!aValidators->validate(anAttribute, aValidatorID, anErrorMsg)) {
if (anErrorMsg.empty())
anErrorMsg = "unknown error.";
- anErrorMsg = "Attribute \"" + anAttributeID + "\" invalidated by \"" + aValidatorID + "\" with error: " + anErrorMsg;
+ anErrorMsg = anAttributeID + " - " + aValidatorID + ": " + anErrorMsg;
}
QString anError = QString::fromStdString(anErrorMsg);