SPIGOT-6642: Throw better message if plugin.yml is empty

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2021-07-17 11:25:17 +10:00
parent c30e6c45cd
commit 581806d851

View File

@ -1258,7 +1258,7 @@ public final class PluginDescriptionFile {
if (object instanceof Map) {
return (Map<?, ?>) object;
}
throw new InvalidDescriptionException(object + " is not properly structured.");
throw new InvalidDescriptionException("Plugin description file is empty or not properly structured. Is " + object + "but should be a map.");
}
/**