summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-08-23 01:28:01 +0200
committersnowleo <schneeleo@gmail.com>2011-08-23 01:28:01 +0200
commit91393e3180c01ae2e3db5501d583e5aa26d79058 (patch)
tree1e66b9a51b0f0c56e5b8946f3ba773d3027afeaf
parentd818f705adc30b5f515e49f88e23e870322f3eb3 (diff)
downloadEssentials-91393e3180c01ae2e3db5501d583e5aa26d79058.tar
Essentials-91393e3180c01ae2e3db5501d583e5aa26d79058.tar.gz
Essentials-91393e3180c01ae2e3db5501d583e5aa26d79058.tar.lz
Essentials-91393e3180c01ae2e3db5501d583e5aa26d79058.tar.xz
Essentials-91393e3180c01ae2e3db5501d583e5aa26d79058.zip
Show filename on yaml error
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsConf.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsConf.java b/Essentials/src/com/earth2me/essentials/EssentialsConf.java
index eaf23b773..82d4876f5 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsConf.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsConf.java
@@ -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)
{
this.root = new HashMap<String, Object>();