Skip to content
This repository was archived by the owner on Jul 4, 2022. It is now read-only.

Commit ea5797a

Browse files
committed
Add better debug
1 parent 1abc28d commit ea5797a

File tree

1 file changed

+2
-4
lines changed
  • simplixcore-minecraft/simplixcore-minecraft-spigot/simplixcore-minecraft-spigot-plugin/src/main/java/dev/simplix/core/minecraft/spigot/plugin/libloader

1 file changed

+2
-4
lines changed

simplixcore-minecraft/simplixcore-minecraft-spigot/simplixcore-minecraft-spigot-plugin/src/main/java/dev/simplix/core/minecraft/spigot/plugin/libloader/PluginClassLoaderFabricator.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,12 @@ public Class<?> loadClass(String name) throws ClassNotFoundException {
178178
false);
179179
return (Class<?>) invoke;
180180
} catch (IllegalAccessException reflectiveOperationException) {
181-
reflectiveOperationException.printStackTrace();
182-
throw new ClassNotFoundException(name);
181+
throw new ClassNotFoundException(name, reflectiveOperationException);
183182
} catch (InvocationTargetException invocationTargetException) {
184183
if (invocationTargetException.getCause() instanceof ClassNotFoundException) {
185184
throw (ClassNotFoundException) invocationTargetException.getCause();
186185
}
187-
invocationTargetException.printStackTrace();
188-
throw new ClassNotFoundException(name);
186+
throw new ClassNotFoundException(name, invocationTargetException);
189187
}
190188
}
191189
};

0 commit comments

Comments
 (0)