This commit is contained in:
filoghost 2017-03-03 22:19:55 +01:00
parent 20acd2fc82
commit a5c947998b

View File

@ -57,10 +57,7 @@ public final class SimpleUpdater {
JSONArray filesArray = (JSONArray) readJson("https://api.curseforge.com/servermods/files?projectIds=" + projectId);
if (filesArray.size() == 0) {
// The array cannot be empty, there must be at least one file. The project ID is not valid.
plugin.getLogger().warning("The author of this plugin has misconfigured the Updater system.");
plugin.getLogger().warning("The project ID (" + projectId + ") provided for updating is invalid.");
plugin.getLogger().warning("Please notify the author of this error.");
// The array cannot be empty, there must be at least one file. The project ID is not valid or curse returned a wrong response.
return;
}