mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Return a more informative error for invalid verbose filters
This commit is contained in:
parent
9988011308
commit
f63992e209
@ -79,8 +79,7 @@ public class VerboseCommand extends SingleCommand {
|
|||||||
try {
|
try {
|
||||||
parsedFilter = VerboseFilter.parse(filter);
|
parsedFilter = VerboseFilter.parse(filter);
|
||||||
} catch (InvalidFilterException e) {
|
} catch (InvalidFilterException e) {
|
||||||
e.printStackTrace();
|
Message.VERBOSE_INVALID_FILTER.send(sender, filter, e.getCause().getMessage());
|
||||||
Message.VERBOSE_INVALID_FILTER.send(sender, filter);
|
|
||||||
return CommandResult.FAILURE;
|
return CommandResult.FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ public enum Message {
|
|||||||
/*
|
/*
|
||||||
* Commands
|
* Commands
|
||||||
*/
|
*/
|
||||||
VERBOSE_INVALID_FILTER("&4{}&c is not a valid verbose filter.", true),
|
VERBOSE_INVALID_FILTER("&4{}&c is not a valid verbose filter. &7({})", true),
|
||||||
VERBOSE_ON("&bVerbose logging &aenabled &bfor checks matching &aANY&b.", true),
|
VERBOSE_ON("&bVerbose logging &aenabled &bfor checks matching &aANY&b.", true),
|
||||||
VERBOSE_ON_QUERY("&bVerbose logging &aenabled &bfor checks matching &a{}&b.", true),
|
VERBOSE_ON_QUERY("&bVerbose logging &aenabled &bfor checks matching &a{}&b.", true),
|
||||||
VERBOSE_OFF("&bVerbose logging &cdisabled&b.", true),
|
VERBOSE_OFF("&bVerbose logging &cdisabled&b.", true),
|
||||||
|
Loading…
Reference in New Issue
Block a user