mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-14 17:16:47 +00:00
Print channel name in error log
This commit is contained in:
parent
2ed2177555
commit
40f6db430a
|
@ -366,8 +366,9 @@ class FairMQDevice
|
||||||
try {
|
try {
|
||||||
return fChannels.at(channelName).at(index);
|
return fChannels.at(channelName).at(index);
|
||||||
} catch (const std::out_of_range& oor) {
|
} 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) << "requested channel has not been configured? check channel names/configuration.";
|
||||||
|
LOG(error) << "channel: " << channelName << ", index: " << index;
|
||||||
|
LOG(error) << "out of range: " << oor.what();
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user