Skip to content
Snippets Groups Projects
Commit 944cf3eb authored by Cristina Moraru's avatar Cristina Moraru
Browse files

Fix promise exception handling

parent 2551f51f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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