Skip to content
Snippets Groups Projects
Commit ad70e718 authored by Enrico Guiraud's avatar Enrico Guiraud
Browse files

[DF] Throw if TTreeReader exited the event loop early because of error

This is to fix ROOT-10549.
parent 1b65600d
No related branches found
No related tags found
No related merge requests found
......@@ -342,6 +342,11 @@ void RLoopManager::RunTreeReader()
std::cerr << "RDataFrame::Run: event was loop interrupted\n";
throw;
}
if (r.GetEntryStatus() != TTreeReader::kEntryNotFound && fNStopsReceived < fNChildren) {
// something went wrong in the TTreeReader event loop
throw std::runtime_error("An error was encountered while processing the data. TTreeReader status code is: " +
std::to_string(r.GetEntryStatus()));
}
CleanUpTask(0u);
}
......
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