From b428fb2afa4efd8af1fbb0c70784ca8394f9b807 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 15 Dec 2021 16:24:42 +0100 Subject: [PATCH] PD: handle Base::Exception in Loft::execute --- src/Mod/PartDesign/App/FeatureLoft.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/App/FeatureLoft.cpp b/src/Mod/PartDesign/App/FeatureLoft.cpp index 20fd6c23ec..da9b94340e 100644 --- a/src/Mod/PartDesign/App/FeatureLoft.cpp +++ b/src/Mod/PartDesign/App/FeatureLoft.cpp @@ -298,9 +298,11 @@ App::DocumentObjectExecReturn *Loft::execute(void) return App::DocumentObject::StdReturn; } catch (Standard_Failure& e) { - return new App::DocumentObjectExecReturn(e.GetMessageString()); } + catch (const Base::Exception& e) { + return new App::DocumentObjectExecReturn(e.what()); + } catch (...) { return new App::DocumentObjectExecReturn("Loft: A fatal error occurred when making the loft"); }