summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-10-30 00:00:24 +0000
committerStephen D. Huston <shuston@apache.org>2009-10-30 00:00:24 +0000
commitcd1db3d01244b5cfd52a622ba7ee7f4400680ca2 (patch)
tree42ec66795dd9c0b203c6d0802a50206c4aa3bebc /cpp/src
parent4b985ac91b6c149197890de7bdd20a1c0652c624 (diff)
downloadqpid-python-cd1db3d01244b5cfd52a622ba7ee7f4400680ca2.tar.gz
Always include the hresult message if it's available.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@831161 13f79535-47bb-0310-9956-ffa450edef68
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();
- }
}
};