Show filename on yaml error

This commit is contained in:
snowleo 2011-08-23 01:28:01 +02:00
parent d818f705ad
commit 91393e3180

View File

@ -68,7 +68,12 @@ public class EssentialsConf extends Configuration
} }
} }
} }
super.load(); try {
super.load();
} catch(RuntimeException e) {
logger.log(Level.INFO, "File: " + configFile.toString());
throw e;
}
if (this.root == null) if (this.root == null)
{ {
this.root = new HashMap<String, Object>(); this.root = new HashMap<String, Object>();