From 05b1ba82bd4d87338f1a88c06f5c97043ffd7605 Mon Sep 17 00:00:00 2001 From: Matt D Date: Mon, 3 Oct 2022 04:51:15 -0400 Subject: [PATCH] Update PluginUtils.java Print the stack trace when a plugin fails to load due to an exception thrown from its constructor. --- src/main/java/net/lenni0451/spm/utils/PluginUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/lenni0451/spm/utils/PluginUtils.java b/src/main/java/net/lenni0451/spm/utils/PluginUtils.java index 267f571..2e0230f 100644 --- a/src/main/java/net/lenni0451/spm/utils/PluginUtils.java +++ b/src/main/java/net/lenni0451/spm/utils/PluginUtils.java @@ -237,6 +237,7 @@ public Plugin loadPlugin(final String name) { throw new IllegalStateException(I18n.t("pm.pluginutils.loadPlugin.missingDependency")); } catch (InvalidPluginException e) { // throw new IllegalStateException("Invalid plugin file"); + e.printStackTrace(); throw new IllegalStateException(I18n.t("pm.pluginutils.loadPlugin.invalidPluginFile")); }