summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/store
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
commitfb967fea63f57d9cc9291b41b6834d2b94a7ed1f (patch)
treeed3659c62d21651034efaf6641219f6f51bcb3ca /qpid/cpp/src/qpid/store
parentaf57cf1c8e8764197a158f1c4e070067e1a286f9 (diff)
downloadqpid-python-fb967fea63f57d9cc9291b41b6834d2b94a7ed1f.tar.gz
Always include the hresult message if it's available.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@831161 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/store')
-rw-r--r--qpid/cpp/src/qpid/store/ms-sql/Exception.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/qpid/cpp/src/qpid/store/ms-sql/Exception.h b/qpid/cpp/src/qpid/store/ms-sql/Exception.h
index 84b7f62739..0da4b24210 100644
--- a/qpid/cpp/src/qpid/store/ms-sql/Exception.h
+++ b/qpid/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();
- }
}
};