mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
SPIGOT-6642: Throw better message if plugin.yml is empty
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c30e6c45cd
commit
581806d851
1 changed files with 1 additions and 1 deletions
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue