From 56d1bcf3eb1331cd226a7e85f733b0fafd75d491 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Fri, 11 Jan 2013 15:59:55 -0600 Subject: [PATCH] Show details on execution exceptions - better info on cause --- src/main/java/org/dynmap/bukkit/DynmapPlugin.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/dynmap/bukkit/DynmapPlugin.java b/src/main/java/org/dynmap/bukkit/DynmapPlugin.java index ac6f978c..47dccab2 100644 --- a/src/main/java/org/dynmap/bukkit/DynmapPlugin.java +++ b/src/main/java/org/dynmap/bukkit/DynmapPlugin.java @@ -13,6 +13,7 @@ import java.util.Map; import java.util.Set; import java.util.concurrent.Callable; import java.util.concurrent.CancellationException; +import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import org.bukkit.ChatColor; @@ -475,6 +476,9 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI { delay = f.get(); } catch (CancellationException cx) { return null; + } catch (ExecutionException ex) { + Log.severe("Exception while fetching chunks: ", ex.getCause()); + return null; } catch (Exception ix) { Log.severe(ix); return null;