Skip to content
Snippets Groups Projects
Commit ce1f35a0 authored by Hangyi Wu's avatar Hangyi Wu
Browse files

throw exception instead of error msg

parent 4265ea28
No related branches found
No related tags found
1 merge request!4389New sourceID encoding and new UT ReadoutMap
Pipeline #7193777 passed
......@@ -258,10 +258,10 @@ UTDAQID UTReadoutTool::channelIDToDAQID( const Detector::UT::ChannelID aOfflineC
if ( i != m.end() ) {
board = i->second;
} else {
error() << "No board found for" << aOfflineChan << endmsg;
throw GaudiException( "No board found for " + aOfflineChan.toString(), name(), StatusCode::FAILURE );
}
} else {
error() << "No board found for" << aOfflineChan << endmsg;
throw GaudiException( "No board found for " + aOfflineChan.toString(), name(), StatusCode::FAILURE );
}
if ( msgLevel( MSG::DEBUG ) ) {
const auto& cache = getCache( roInfo );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment