mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Add debug code for event exceptions.
By: md_5 <md_5@live.com.au>
This commit is contained in:
parent
63ba9e08e4
commit
4338e3bed9
1 changed files with 26 additions and 0 deletions
26
Bukkit-Patches/0006-Debug-for-Event-Exceptions.patch
Normal file
26
Bukkit-Patches/0006-Debug-for-Event-Exceptions.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
From 871c6282b0b5235cc498518c2adf9ff51cf6554f Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <md_5@live.com.au>
|
||||
Date: Thu, 14 Mar 2013 20:37:25 +1100
|
||||
Subject: [PATCH] Debug for Event Exceptions.
|
||||
|
||||
---
|
||||
src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
|
||||
index 9c7288e..37b67b9 100644
|
||||
--- a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
|
||||
+++ b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
|
||||
@@ -424,6 +424,9 @@ public class JavaPluginLoader implements PluginLoader {
|
||||
}
|
||||
method.invoke(listener, event);
|
||||
} catch (InvocationTargetException ex) {
|
||||
+ server.getLogger().warning("==== Start Spigot Debug ===");
|
||||
+ ex.printStackTrace();
|
||||
+ server.getLogger().warning("==== End Spigot Debug ===");
|
||||
throw new EventException(ex.getCause());
|
||||
} catch (Throwable t) {
|
||||
throw new EventException(t);
|
||||
--
|
||||
1.8.1-rc2
|
||||
|
Loading…
Reference in a new issue