Extend error message if channel(s) was not configured before timeout

This commit is contained in:
Alexey Rybalchenko 2022-11-16 19:57:02 +01:00 committed by Dennis Klein
parent 87baf9749d
commit 7697f2f4b1

View File

@ -317,6 +317,10 @@ void Device::ConnectWrapper()
if (numAttempts++ > maxAttempts) {
LOG(error) << "could not connect all channels after " << fInitializationTimeoutInS << " attempts";
LOG(error) << "following channels are still invalid:";
for (auto& chan : fUninitializedConnectingChannels) {
LOG(error) << "channel: " << *chan;
}
throw runtime_error(tools::ToString("could not connect all channels after ", fInitializationTimeoutInS, " attempts"));
}