Skip to content

Commit

Permalink
Extend error message if channel(s) was not configured before timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx authored and dennisklein committed Nov 17, 2022
1 parent 87baf97 commit 7697f2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fairmq/Device.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

Expand Down

0 comments on commit 7697f2f

Please sign in to comment.