You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by sh...@apache.org on 2009/10/30 01:00:25 UTC

svn commit: r831161 - /qpid/trunk/qpid/cpp/src/qpid/store/ms-sql/Exception.h

Author: shuston
Date: Fri Oct 30 00:00:24 2009
New Revision: 831161

URL: http://svn.apache.org/viewvc?rev=831161&view=rev
Log:
Always include the hresult message if it's available.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/store/ms-sql/Exception.h

Modified: qpid/trunk/qpid/cpp/src/qpid/store/ms-sql/Exception.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/store/ms-sql/Exception.h?rev=831161&r1=831160&r2=831161&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/store/ms-sql/Exception.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/store/ms-sql/Exception.h Fri Oct 30 00:00:24 2009
@@ -46,15 +46,14 @@
     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();
-        }
     }
 };
 



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org