From 581806d8516b331f3192bcd224cefe42dbca9532 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 17 Jul 2021 11:25:17 +1000 Subject: [PATCH] SPIGOT-6642: Throw better message if plugin.yml is empty By: md_5 --- .../src/main/java/org/bukkit/plugin/PluginDescriptionFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java index 801a323d9c..0c9f4d1e91 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java +++ b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java @@ -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."); } /**