diff options
author | Stephen D. Huston <shuston@apache.org> | 2009-10-30 00:00:24 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2009-10-30 00:00:24 +0000 |
commit | cd1db3d01244b5cfd52a622ba7ee7f4400680ca2 (patch) | |
tree | 42ec66795dd9c0b203c6d0802a50206c4aa3bebc /cpp/src | |
parent | 4b985ac91b6c149197890de7bdd20a1c0652c624 (diff) | |
download | qpid-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.h | 5 |
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(); - } } }; |