Better errormessage when failing to read schema.cfg

This commit is contained in:
gfgtdf 2015-08-06 14:34:11 +02:00
parent 6c4ceacb00
commit 6cc2c93853

View file

@ -145,7 +145,8 @@ bool schema_validator::read_config_file(const std::string &filename){
game_config::config_cache::instance().get_preproc_map());
filesystem::scoped_istream stream = preprocess_file(filename, &preproc);
read(cfg, *stream);
} catch(config::error&) {
} catch(config::error& e) {
ERR_VL << "Failed to read file "<< filename << ":\n" << e.what() << "\n";
return false;
}
BOOST_FOREACH(const config &g, cfg.child_range("wml_schema")) {