From 6827c0051b9771196d764722a43e265462cd82a6 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Sat, 15 Aug 2020 13:10:48 +0200 Subject: [PATCH] !Improved loading error messages --- .../java/net/Indyuce/mmocore/manager/MMOLoadManager.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"); } }