diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/misc/VerboseCommand.java b/common/src/main/java/me/lucko/luckperms/common/commands/misc/VerboseCommand.java index d1d9c5b7..5eda0d11 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/misc/VerboseCommand.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/misc/VerboseCommand.java @@ -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; } diff --git a/common/src/main/java/me/lucko/luckperms/common/locale/message/Message.java b/common/src/main/java/me/lucko/luckperms/common/locale/message/Message.java index 2519acbf..382a9cae 100644 --- a/common/src/main/java/me/lucko/luckperms/common/locale/message/Message.java +++ b/common/src/main/java/me/lucko/luckperms/common/locale/message/Message.java @@ -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),