mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 10:07:37 +01:00
Show details on execution exceptions - better info on cause
This commit is contained in:
parent
f43027f02f
commit
56d1bcf3eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user