From 944cf3ebe519eaf9a5fae6e8743d83335673d60c Mon Sep 17 00:00:00 2001 From: Cristina Moraru <cristina-gabriela.moraru@cern.ch> Date: Fri, 9 Jun 2017 17:31:17 +0200 Subject: [PATCH] Fix promise exception handling Signed-off-by: Cristina Moraru <cristina-gabriela.moraru@cern.ch> --- .../castor/tape/tapeserver/daemon/RecallTaskInjector.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tapeserver/castor/tape/tapeserver/daemon/RecallTaskInjector.cpp b/tapeserver/castor/tape/tapeserver/daemon/RecallTaskInjector.cpp index 92496871b1..e80b66eb71 100644 --- a/tapeserver/castor/tape/tapeserver/daemon/RecallTaskInjector.cpp +++ b/tapeserver/castor/tape/tapeserver/daemon/RecallTaskInjector.cpp @@ -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 -- GitLab