From 91393e3180c01ae2e3db5501d583e5aa26d79058 Mon Sep 17 00:00:00 2001 From: snowleo Date: Tue, 23 Aug 2011 01:28:01 +0200 Subject: [PATCH] Show filename on yaml error --- Essentials/src/com/earth2me/essentials/EssentialsConf.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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();