mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 02:25:28 +01:00
Add debug code for event exceptions.
This commit is contained in:
parent
ac5e97d4e5
commit
f34560ad84
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 New Issue
Block a user