From 1467a4c38a981b8d915f93acaa273a149afb30a7 Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 3 Aug 2016 17:39:44 +0300 Subject: [PATCH] More clear message for error on plane. --- src/ConstructionPlugin/ConstructionPlugin_Plane.cpp | 3 +++ 1 file changed, 3 insertions(+) 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()) { -- 2.39.2