]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
More clear message for error on plane.
authordbv <dbv@opencascade.com>
Wed, 3 Aug 2016 14:39:44 +0000 (17:39 +0300)
committerdbv <dbv@opencascade.com>
Fri, 5 Aug 2016 13:16:16 +0000 (16:16 +0300)
src/ConstructionPlugin/ConstructionPlugin_Plane.cpp

index 2acacfb9e0e0b63a6b575cff06c928687d4a8867..28b6e8b27b4fff1c79149b652161e98a655ab752 100644 (file)
@@ -103,6 +103,9 @@ void ConstructionPlugin_Plane::execute()
     }
   } else if(aCreationMethod == CREATION_METHOD_BY_TWO_PARALLEL_PLANES()) {
     aShape = createByTwoParallelPlanes();
+  } else {
+    setError("Error: Plane creation method \"" + aCreationMethod + "\" not supported.");
+    return;
   }
 
   if(!aShape.get()) {