1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-07 23:27:08 +02:00

Show filename on yaml error

This commit is contained in:
snowleo
2011-08-23 01:28:01 +02:00
parent a6d8597314
commit 63c1cf8627

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>();