mail[Wesnoth-commits] r43900 - /trunk/src/gui/widgets/settings.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by billybiset on July 04, 2010 - 22:03:
Author: billynux
Date: Sun Jul  4 22:03:55 2010
New Revision: 43900

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43900&view=rev
Log:
Improved error message when using different source and data versions.

Modified:
    trunk/src/gui/widgets/settings.cpp

Modified: trunk/src/gui/widgets/settings.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/settings.cpp?rev=43900&r1=43899&r2=43900&view=diff
==============================================================================
--- trunk/src/gui/widgets/settings.cpp (original)
+++ trunk/src/gui/widgets/settings.cpp Sun Jul  4 22:03:55 2010
@@ -279,8 +279,11 @@
                                ; itor != registered_window_types().end()
                                ; ++itor) {
 
+            const std::string error_msg("Window not defined in WML: '" +
+                                         *itor +
+                                         "'. Perhaps a mismatch between data 
and source versions. Try -datadir <trunk-dir>" );
                        VALIDATE(window_types.find(*itor) != 
window_types.end()
-                                       , _("Window not defined."));
+                                       , error_msg.c_str() );
                }
        }
 




Related Messages


Powered by MHonArc, Updated Sun Jul 04 22:40:06 2010