Add catch block
This commit is contained in:
parent
1ede6a3b93
commit
4376491e38
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user