From 4f89e20e6f22ba4e14b7c3af94989f82bf702178 Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Thu, 20 Jun 2013 23:07:10 +0200 Subject: [PATCH] Print reason when closing gate on save. --- src/de/craftinc/gates/Gate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/craftinc/gates/Gate.java b/src/de/craftinc/gates/Gate.java index 2a20097..7e60530 100644 --- a/src/de/craftinc/gates/Gate.java +++ b/src/de/craftinc/gates/Gate.java @@ -307,7 +307,7 @@ public class Gate implements ConfigurationSerializable validate(); // make sure to not write invalid stuff to disk } catch (Exception e) { - Plugin.log("Gate " + this.getId() + " seems to be not valid. It got closed before serializing!"); + Plugin.log("Gate " + this.getId() + " seems to be not valid. It got closed before serializing! (Reason: " + e.getMessage() + ")"); } Map retVal = new HashMap();