diff options
Diffstat (limited to 'cpp/src/qpid/broker/TxPublish.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/TxPublish.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/TxPublish.cpp b/cpp/src/qpid/broker/TxPublish.cpp index 1a8630eb54..dcee00e803 100644 --- a/cpp/src/qpid/broker/TxPublish.cpp +++ b/cpp/src/qpid/broker/TxPublish.cpp @@ -30,10 +30,12 @@ bool TxPublish::prepare(TransactionContext* ctxt) throw(){ try{ for_each(queues.begin(), queues.end(), Prepare(ctxt, msg)); return true; + }catch(const std::exception& e){ + QPID_LOG(error, "Failed to prepare: " << e.what()); }catch(...){ - QPID_LOG(error, "Failed to prepare"); - return false; + QPID_LOG(error, "Failed to prepare (unknown error)"); } + return false; } void TxPublish::commit() throw(){ |
