fix re-throwing an exception

This commit is contained in:
wmayer
2018-11-15 17:20:55 +01:00
parent f2d963edce
commit e63fa8161a

View File

@@ -185,9 +185,9 @@ private:
pcFeature->FemMesh.setValuePtr(mesh.release());
pcFeature->purgeTouched();
}
catch(Base::Exception& e) {
catch (Base::Exception&) {
#ifdef FC_USE_VTK
if( FemPostPipeline::canRead(file) ) {
if (FemPostPipeline::canRead(file)) {
FemPostPipeline *pcFeature = static_cast<FemPostPipeline *>
(pcDoc->addObject("Fem::FemPostPipeline", file.fileNamePure().c_str()));
@@ -197,10 +197,11 @@ private:
pcFeature->touch();
pcDoc->recomputeFeature(pcFeature);
}
else
throw e;
else {
throw;
}
#else
throw e;
throw;
#endif
}