From: dbv Date: Wed, 3 Aug 2016 14:39:44 +0000 (+0300) Subject: More clear message for error on plane. X-Git-Tag: V_2.5.0~140 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1467a4c38a981b8d915f93acaa273a149afb30a7;p=modules%2Fshaper.git More clear message for error on plane. --- diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp b/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp index 2acacfb9e..28b6e8b27 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp @@ -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()) {