From fb967fea63f57d9cc9291b41b6834d2b94a7ed1f Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Fri, 30 Oct 2009 00:00:24 +0000 Subject: 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 --- qpid/cpp/src/qpid/store/ms-sql/Exception.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'qpid/cpp/src/qpid/store') 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(); - } } }; -- cgit v1.2.1