mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 08:32:07 -07:00
SPIGOT-6642: Throw better message if plugin.yml is empty
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -1258,7 +1258,7 @@ public final class PluginDescriptionFile {
|
|||||||
if (object instanceof Map) {
|
if (object instanceof Map) {
|
||||||
return (Map<?, ?>) object;
|
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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user