Show details on execution exceptions - better info on cause
This commit is contained in:
parent
c78d24711a
commit
828efec07f
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
import java.util.concurrent.CancellationException;
|
import java.util.concurrent.CancellationException;
|
||||||
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.Future;
|
import java.util.concurrent.Future;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
|
|
@ -475,6 +476,9 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
||||||
delay = f.get();
|
delay = f.get();
|
||||||
} catch (CancellationException cx) {
|
} catch (CancellationException cx) {
|
||||||
return null;
|
return null;
|
||||||
|
} catch (ExecutionException ex) {
|
||||||
|
Log.severe("Exception while fetching chunks: ", ex.getCause());
|
||||||
|
return null;
|
||||||
} catch (Exception ix) {
|
} catch (Exception ix) {
|
||||||
Log.severe(ix);
|
Log.severe(ix);
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue