feat(config): clearer error message

This commit is contained in:
aro 2023-03-13 19:58:13 +01:00
parent 7e64d3f93a
commit c1dd0e646a

View file

@ -128,7 +128,10 @@ public class NickoBukkit extends JavaPlugin {
if (configuration == null) { return configuration = configurationManager.load(); }
return configuration;
} catch (IOException e) {
getLogger().severe("Failed to load configuration file: " + e.getMessage());
getLogger().severe("Failed to load the configuration file!");
getLogger().severe("It may be have been generated with an older version of Nicko.");
getLogger().severe("Delete the configuration and restart the server please :)");
getLogger().severe("(" + e.getMessage() + ")");
return null;
}
}