Skip to content

Commit

Permalink
Use standard edm::exceptionContext() in Worker::prePrefetchSelectionA…
Browse files Browse the repository at this point in the history
…sync()
  • Loading branch information
makortel committed May 9, 2024
1 parent e407125 commit 5bc2ea7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions FWCore/Framework/src/Worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,7 @@ namespace edm {
}

} catch (cms::Exception& e) {
e.addContext("Calling OutputModule prePrefetchSelection()");
if (moduleCallingContext_.type() == ModuleCallingContext::Type::kPlaceInPath) {
auto pathContext = moduleCallingContext_.placeInPathContext()->pathContext();
e.addContext("Running path '" + pathContext->pathName() + "'");
auto streamContext = moduleCallingContext_.getStreamContext();
std::ostringstream ost;
exceptionContext(ost, *streamContext);
e.addContext(ost.str());
}
edm::exceptionContext(e, moduleCallingContext_);
setException<true>(std::current_exception());
waitingTasks_.doneWaiting(std::current_exception());
//TBB requires that destroyed tasks have count 0
Expand Down

0 comments on commit 5bc2ea7

Please sign in to comment.