]> git.saurik.com Git - wxWidgets.git/commitdiff
generate an error message when a module initialization fails, otherwise it's impossib...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 6 Jun 2005 23:38:01 +0000 (23:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 6 Jun 2005 23:38:01 +0000 (23:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/module.cpp

index 5534c4c2dd2aac24d42e97adee9b27923300aebc..b5f5409cc6cbb1c7b0b3fdd0a5431dff67b64138 100644 (file)
@@ -69,8 +69,12 @@ bool wxModule::InitializeModules()
     wxModuleList::compatibility_iterator node;
     for ( node = m_modules.GetFirst(); node; node = node->GetNext() )
     {
-        if ( !node->GetData()->Init() )
+        wxModule *module = node->GetData();
+        if ( !module->Init() )
         {
+            wxLogError(_("Module \"%s\" initialization failed"),
+                       module->GetClassInfo()->GetClassName());
+
             // clean up already initialized modules - process in reverse order
             wxModuleList::compatibility_iterator n;
             for ( n = node->GetPrevious(); n; n = n->GetPrevious() )