Salome HOME
Help to debug when troubles at launch time
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 21 Mar 2024 13:40:39 +0000 (14:40 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 21 Mar 2024 13:40:39 +0000 (14:40 +0100)
src/runtime/SalomeContainerTools.cxx

index 4a2a4427b07bead9abc25ce545badc0668e7822f..51422d3685e068b64445a3181da772371d2adb44 100644 (file)
@@ -421,16 +421,23 @@ void SalomeContainerToolsBase::Start(const std::vector<std::string>& compoNames,
       DEBUG_YACSTRACE("SalomeContainer::start :" << str << " :CORBA Comm failure detected. Make another try!");
       nbTries++;
       if(nbTries > 5)
-        throw Exception("SalomeContainer::start : Unable to launch container in Salome : CORBA Comm failure detected");
+      {
+        std::ostringstream oss; oss << "SalomeContainer::start : Unable to launch container " << myparams.container_name << " in Salome : CORBA Comm failure detected";
+        throw Exception( oss.str() );
+      }
     }
     catch(CORBA::Exception&)
     {
-        throw Exception("SalomeContainer::start : Unable to launch container in Salome : Unexpected CORBA failure detected");
+      std::ostringstream oss; oss << "SalomeContainer::start : Unable to launch container " << myparams.container_name << " in Salome : Unexpected CORBA failure detected";
+      throw Exception( oss.str() );
     }
   }
 
   if(CORBA::is_nil(trueCont))
-    throw Exception("SalomeContainer::start : Unable to launch container in Salome. Check your CatalogResources.xml file");
+  {
+    std::ostringstream oss; oss << "SalomeContainer::start : Unable to launch container " << myparams.container_name << " in Salome. Check your CatalogResources.xml file";
+    throw Exception( oss.str() );
+  }
 
   // TODO : thread safety!
   schelp->setContainer(askingNode,trueCont);