Better errormessage when failing to read schema.cfg
This commit is contained in:
parent
6c4ceacb00
commit
6cc2c93853
1 changed files with 2 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue