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"); }