Print channel name in error log

This commit is contained in:
Gvozden Neskovic 2019-05-31 18:40:53 +02:00 committed by Dennis Klein
parent 2ed2177555
commit 40f6db430a

View File

@ -366,8 +366,9 @@ class FairMQDevice
try {
return fChannels.at(channelName).at(index);
} catch (const std::out_of_range& oor) {
LOG(error) << "out of range: " << oor.what();
LOG(error) << "requested channel has not been configured? check channel names/configuration.";
LOG(error) << "channel: " << channelName << ", index: " << index;
LOG(error) << "out of range: " << oor.what();
throw;
}