Add catch block

This commit is contained in:
wmayer 2013-08-10 16:55:27 +02:00
parent 1ede6a3b93
commit 4376491e38

View File

@ -414,6 +414,9 @@ App::DocumentObjectExecReturn *Sweep::execute(void)
Handle_Standard_Failure e = Standard_Failure::Caught();
return new App::DocumentObjectExecReturn(e->GetMessageString());
}
catch (...) {
return new App::DocumentObjectExecReturn("A fatal error occurred when making the sweep");
}
}
// ----------------------------------------------------------------------------