Commit 19d0fbbf authored by Cristina Moraru's avatar Cristina Moraru
Browse files

Fix promise exception handling



Signed-off-by: default avatarCristina Moraru <cristina-gabriela.moraru@cern.ch>
parent 2395b641
......@@ -113,7 +113,9 @@ bool RecallTaskInjector::waitForPromise() {
void RecallTaskInjector::setPromise() {
try {
m_raoPromise.set_value();
} catch (const std::exception &exc) {}
} catch (const std::exception &exc) {
throw cta::exception::Exception(std::string("In RecallTaskInjector::setPromise() got std::exception: ") + exc.what());
}
}
//------------------------------------------------------------------------------
//injectBulkRecalls
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment