diff --git a/src/SMESH_I/MG_ADAPT_i.cxx b/src/SMESH_I/MG_ADAPT_i.cxx index 1d41d8079..f0b510ccd 100644 --- a/src/SMESH_I/MG_ADAPT_i.cxx +++ b/src/SMESH_I/MG_ADAPT_i.cxx @@ -364,7 +364,16 @@ char* MG_ADAPT_i::getCommandToRun() CORBA::Long MG_ADAPT_i::compute() { errStr = ""; - CORBA::Long ret = myMgAdapt->compute(errStr); + CORBA::Long ret; + try + { + ret = myMgAdapt->compute(errStr); + } + catch (const std::exception& e) + { + std::cerr<