Improved error message when using different source and data versions.

This commit is contained in:
Guillermo Biset 2010-07-04 20:03:55 +00:00
parent 2b9091740e
commit 2a69ff283b

View file

@ -279,8 +279,11 @@ const std::string& tgui_definition::read(const config& cfg)
; 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() );
}
}