Salome HOME
Define Rename as an operation
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ExternalValidator.cpp
index 3302e4c1e0368fccf34068b6f6fb1c60474dbf0c..362dd94f17ab09068ada469ed648c244b79ec54f 100644 (file)
@@ -28,8 +28,10 @@ bool SketchPlugin_ExternalValidator::isValid(const AttributePtr& theAttribute,
   bool isParameterExternal = isExternalAttribute(aFeature->attribute(aFrontArgument));
 
   // it is not possible that both features, attribute and attribute in parameter, are external
-  if (isAttributeExternal && isParameterExternal)
+  if (isAttributeExternal && isParameterExternal) {
+    theError = "Both features, attribute and attribute in parameter, are external.";
     return false;
+  }
   return true;
 }