Skip to content

Commit

Permalink
Merge pull request #44944 from makortel/improvePrePrefetchSelectionAs…
Browse files Browse the repository at this point in the history
…yncException

Use standard edm::exceptionContext() in Worker::prePrefetchSelectionAsync()
  • Loading branch information
cmsbuild authored May 10, 2024
2 parents ef1f577 + 5bc2ea7 commit 86aaa10
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 86aaa10

Please sign in to comment.