diff --git a/src/main/java/net/Indyuce/mmocore/manager/MMOLoadManager.java b/src/main/java/net/Indyuce/mmocore/manager/MMOLoadManager.java index be9e9431..0cb49052 100644 --- a/src/main/java/net/Indyuce/mmocore/manager/MMOLoadManager.java +++ b/src/main/java/net/Indyuce/mmocore/manager/MMOLoadManager.java @@ -66,11 +66,10 @@ public class MMOLoadManager { if (found != null) return found; } catch (IllegalArgumentException | JsonParseException | IndexOutOfBoundsException exception) { - throw new IllegalArgumentException("Could not load '" + config.toString() + "': " + exception.getMessage()); + throw new IllegalArgumentException(exception.getMessage()); } } - throw new IllegalArgumentException( - "Could not load '" + config.toString() + "': Could not find corresponding " + c.getSimpleName() + " in database"); + throw new IllegalArgumentException("Could not find corresponding " + c.getSimpleName() + " in database"); } }