From 0a52ef7219b43e1d244b75bce4a613e72db5dbe8 Mon Sep 17 00:00:00 2001 From: Andre601 <11576465+Andre601@users.noreply.github.com> Date: Sun, 3 Jan 2021 15:38:10 +0100 Subject: [PATCH] Use a generic log message for this --- .../expansion/manager/LocalExpansionManager.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java b/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java index 19cf234..5e2e0b3 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java +++ b/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java @@ -358,12 +358,8 @@ public final class LocalExpansionManager implements Listener { throw ((LinkageError) ex.getCause()); } - /* Currently causes an exception when clazz is null due to an expansion not having any. - * - *plugin.getLogger() - * .log(Level.SEVERE, "Failed to load placeholder expansion from class: " + clazz.getName(), - * ex); - */ + plugin.getLogger().warning("There was an issue with loading an expansion"); + return null; } }