X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FSalomeContainerTools.cxx;fp=src%2Fruntime%2FSalomeContainerTools.cxx;h=51422d3685e068b64445a3181da772371d2adb44;hb=44f9643fef262a0dd98a175f3d4c58a60f65c6fc;hp=4a2a4427b07bead9abc25ce545badc0668e7822f;hpb=6999133dfd927a9291070ddf87188e2915a5417c;p=modules%2Fyacs.git 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);