diff options
author | snowleo <schneeleo@gmail.com> | 2011-08-23 01:28:01 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-08-23 01:28:01 +0200 |
commit | 91393e3180c01ae2e3db5501d583e5aa26d79058 (patch) | |
tree | 1e66b9a51b0f0c56e5b8946f3ba773d3027afeaf | |
parent | d818f705adc30b5f515e49f88e23e870322f3eb3 (diff) | |
download | Essentials-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.java | 7 |
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>(); |