Commit e5050cc5 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Print an error message if the input data stream cannot be initialized.

From: Marco Clemencic <marco.clemencic@cern.ch>


git-svn-id: svn+ssh://svn.cern.ch/reps/gaudi/Gaudi/branches/GAUDI/GAUDI_newpack@6744 53ecefc3-a64d-0410-9bdf-b8581fa3287e
parent a225cddb
Package : GaudiKernel
Package manager : Marco Clemencic
! 2011-12-10 - Marco Clemencic
- Print an error message if the input data stream cannot be initialized.
! 2011-12-08 - Marco Clemencic
- Fixed bug #89628: Missing const methods in CommonMessaging.
......
......@@ -156,7 +156,6 @@ StatusCode DataStreamTool::initializeStream(EventSelectorDataStream* s) {
// Create (sub-) Event selector service
StatusCode DataStreamTool::createSelector(const std::string& nam, const std::string& typ, IEvtSelector*& sel) {
MsgStream log(msgSvc(), name());
IService* isvc = ROOT::Reflex::PluginService::Create<IService*>(typ, nam, serviceLocator());
if ( isvc ) {
StatusCode status = isvc->queryInterface(IEvtSelector::interfaceID(), (void**)&sel);
......@@ -166,6 +165,8 @@ StatusCode DataStreamTool::createSelector(const std::string& nam, const std::str
sel = 0;
isvc->release();
}
MsgStream log(msgSvc(), name());
log << MSG::ERROR << "Failed to create IEvtSelector " << typ << "/" << nam << endmsg;
return StatusCode::FAILURE;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment