mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-24 00:15:16 +01:00
!Improved loading error messages
This commit is contained in:
parent
91d59112c7
commit
6827c0051b
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user