[commit] r1151 - in trunk/GME: Gme Mga
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Fri Jan 28 17:23:42 CST 2011
Author: ksmyth
Date: Fri Jan 28 17:23:42 2011
New Revision: 1151
Log:
When addons cant start up, show the ProgIds and their errors
Modified:
trunk/GME/Gme/GMEApp.cpp
trunk/GME/Mga/MgaProject.cpp
Modified: trunk/GME/Gme/GMEApp.cpp
==============================================================================
--- trunk/GME/Gme/GMEApp.cpp Fri Jan 28 17:22:15 2011 (r1150)
+++ trunk/GME/Gme/GMEApp.cpp Fri Jan 28 17:23:42 2011 (r1151)
@@ -1385,9 +1385,8 @@
if(hr == E_MGA_COMPONENT_ERROR) {
BSTR errorInfo;
GetErrorInfo(&errorInfo);
- _bstr_t err("ERROR: automatic addon components '");
+ _bstr_t err("ERROR: automatic addon components could not start up:\n");
err += errorInfo;
- err += "' could not start up.\n";
AfxMessageBox(err);
}
COMTHROW(hr);
@@ -1482,9 +1481,8 @@
if(hr == E_MGA_COMPONENT_ERROR) {
BSTR errorInfo;
GetErrorInfo(&errorInfo);
- _bstr_t err("ERROR: automatic addon components '");
+ _bstr_t err("ERROR: automatic addon components could not start up:\n");
err += errorInfo;
- err += "' could not start up.\n";
AfxMessageBox(err);
}
if( hr == E_UNKNOWN_STORAGE && conn.Left(5) == "MGX=\"") {
@@ -2081,9 +2079,8 @@
if(hr == E_MGA_COMPONENT_ERROR) {
CComBSTR errorInfo;
GetErrorInfo(&errorInfo);
- _bstr_t err("ERROR: automatic addon components '");
+ _bstr_t err("ERROR: automatic addon components could not start up:\n");
err += (BSTR)errorInfo;
- err += "' could not start up.\n";
AfxMessageBox(err);
}
COMTHROW(hr);
@@ -2791,9 +2788,8 @@
if(hr == E_MGA_COMPONENT_ERROR) {
BSTR errorInfo;
GetErrorInfo(&errorInfo);
- _bstr_t err("ERROR: automatic addon components '");
+ _bstr_t err("ERROR: automatic addon components could not start up:\n");
err += errorInfo;
- err += "' could not start up.\n";
AfxMessageBox(err);
}
COMTHROW(hr);
Modified: trunk/GME/Mga/MgaProject.cpp
==============================================================================
--- trunk/GME/Mga/MgaProject.cpp Fri Jan 28 17:22:15 2011 (r1150)
+++ trunk/GME/Mga/MgaProject.cpp Fri Jan 28 17:23:42 2011 (r1151)
@@ -1229,9 +1229,13 @@
COMTHROW( addon->Initialize(this));
autocomps.push_front(addon.Detach());
- } catch(hresult_exception &) {
+ } catch(hresult_exception &e) {
+ BSTR err = NULL;
+ GetErrorInfo(e.hr, &err);
errs += " ";
errs += i->p;
+ errs += ": ";
+ errs += err;
}
}
inautoaddoncreate = false;
More information about the gme-commit
mailing list