summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/store/ms-sql/Exception.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/qpid/store/ms-sql/Exception.h b/cpp/src/qpid/store/ms-sql/Exception.h
index 84b7f62739..0da4b24210 100644
--- a/cpp/src/qpid/store/ms-sql/Exception.h
+++ b/cpp/src/qpid/store/ms-sql/Exception.h
@@ -46,15 +46,14 @@ public:
ADOException(const std::string& _text, _com_error &e)
: Exception(_text) {
text += ": ";
+ text += e.ErrorMessage();
IErrorInfo *i = e.ErrorInfo();
if (i != 0) {
+ text += ": ";
_bstr_t wmsg = e.Description();
text += (const char *)wmsg;
i->Release();
}
- else {
- text += e.ErrorMessage();
- }
}
};