From: Anthony Geay Date: Thu, 21 Mar 2024 13:40:39 +0000 (+0100) Subject: Help to debug when troubles at launch time X-Git-Tag: emc2p_2.0.0-b2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fyacs.git;a=commitdiff_plain;h=44f9643fef262a0dd98a175f3d4c58a60f65c6fc Help to debug when troubles at launch time --- diff --git a/src/runtime/SalomeContainerTools.cxx b/src/runtime/SalomeContainerTools.cxx index 4a2a4427b..51422d368 100644 --- a/src/runtime/SalomeContainerTools.cxx +++ b/src/runtime/SalomeContainerTools.cxx @@ -421,16 +421,23 @@ void SalomeContainerToolsBase::Start(const std::vector& 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);