Skip to content

Commit 668102b

Browse files
committed
log failing plugin class
1 parent 12e61c8 commit 668102b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/cleanroommc/groovyscript/compat/mods/ModSupport.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,9 @@ public void setup(ASMDataTable dataTable) {
153153
if (!externalPluginClasses.contains(clazz)) {
154154
registerContainer((GroovyPlugin) clazz.newInstance());
155155
}
156-
} catch (ClassNotFoundException | InstantiationException e) {
157-
GroovyScript.LOGGER.error("Could not initialize Groovy Plugin '{}'", data.getClassName());
158156
} catch (Throwable e) {
159-
throw new RuntimeException(e);
157+
GroovyScript.LOGGER.error("Could not initialize Groovy Plugin class '{}'", data.getClassName());
158+
GroovyScript.LOGGER.catching(e);
160159
}
161160
}
162161
}

0 commit comments

Comments
 (0)