mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-08 20:09:59 +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 {
|
||||
parsedFilter = VerboseFilter.parse(filter);
|
||||
} catch (InvalidFilterException e) {
|
||||
e.printStackTrace();
|
||||
Message.VERBOSE_INVALID_FILTER.send(sender, filter);
|
||||
Message.VERBOSE_INVALID_FILTER.send(sender, filter, e.getCause().getMessage());
|
||||
return CommandResult.FAILURE;
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ public enum Message {
|
||||
/*
|
||||
* 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_QUERY("&bVerbose logging &aenabled &bfor checks matching &a{}&b.", true),
|
||||
VERBOSE_OFF("&bVerbose logging &cdisabled&b.", true),
|
||||
|
Loading…
Reference in New Issue
Block a user