From e4854338051e88938aea58f81cfff9bc53b01931 Mon Sep 17 00:00:00 2001 From: JOO200 Date: Sun, 30 Jan 2022 05:39:06 +0100 Subject: [PATCH] Fix legacy error message output for WorldGuard commands (#2023) --- .../internal/command/exception/ExceptionConverterHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/exception/ExceptionConverterHelper.java b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/exception/ExceptionConverterHelper.java index bab3a3936e..dd48e0f0fa 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/exception/ExceptionConverterHelper.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/exception/ExceptionConverterHelper.java @@ -78,7 +78,7 @@ public void convert(Throwable t) throws CommandException { throw (CommandException) e.getCause(); } if (e.getCause() instanceof com.sk89q.minecraft.util.commands.CommandException) { - throw new CommandException(e.getCause(), ImmutableList.of()); + throw new CommandExecutionException(e.getCause(), ImmutableList.of()); } throw new CommandExecutionException(e, ImmutableList.of()); } catch (IllegalArgumentException | IllegalAccessException e) {