From 5bc2ea7ed6404c3f4307fa872d5563984e72f173 Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Fri, 3 May 2024 16:38:34 +0200 Subject: [PATCH] Use standard edm::exceptionContext() in Worker::prePrefetchSelectionAsync() --- FWCore/Framework/src/Worker.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/FWCore/Framework/src/Worker.cc b/FWCore/Framework/src/Worker.cc index 0720d66f44000..afeeb0e8868d4 100644 --- a/FWCore/Framework/src/Worker.cc +++ b/FWCore/Framework/src/Worker.cc @@ -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(std::current_exception()); waitingTasks_.doneWaiting(std::current_exception()); //TBB requires that destroyed tasks have count 0