]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
maj TUI
authorazakir <abdoulbari.zakir@csgroup.eu>
Wed, 13 Jan 2021 10:01:18 +0000 (11:01 +0100)
committerazakir <abdoulbari.zakir@csgroup.eu>
Wed, 13 Jan 2021 10:01:18 +0000 (11:01 +0100)
src/SMESH_I/MG_ADAPT_i.cxx

index 1d41d807984e3c0bb2623f793d82b92abb001700..f0b510ccdf96943a630711ab761e6bbc7e179f83 100644 (file)
@@ -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<<e.what();
+        ret = -1;
+    }
        //~errStr =  err.c_str();
        return ret;
 }