[commit] r1430 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Mon Jul 25 14:49:06 CDT 2011


Author: ksmyth
Date: Mon Jul 25 14:49:05 2011
New Revision: 1430

Log:
Get error info before it is lost

Modified:
   trunk/GME/Gme/GMEView.cpp

Modified: trunk/GME/Gme/GMEView.cpp
==============================================================================
--- trunk/GME/Gme/GMEView.cpp	Mon Jul 25 13:01:44 2011	(r1429)
+++ trunk/GME/Gme/GMEView.cpp	Mon Jul 25 14:49:05 2011	(r1430)
@@ -3802,9 +3802,9 @@
 			}
 		}
 		catch(hresult_exception& e) {
-			AbortTransaction(e.hr);
 			_bstr_t err;
 			GetErrorInfo(e.hr, err.GetAddress());
+			AbortTransaction(e.hr);
 			AfxMessageBox((std::wstring(L"Unable to insert objects: ") + static_cast<const wchar_t*>(err)).c_str(), MB_ICONSTOP | MB_OK);
 			CGMEEventLogger::LogGMEEvent(_T("    Unable to insert objects.\r\n"));
 			newObjectIDs.RemoveAll();


More information about the gme-commit mailing list