From c7988c7ad9652e4bc69c7305d967ee0d9066bc71 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 28 Jun 2014 17:32:25 -0700 Subject: [PATCH] Don't throw a ParameterException for a regular exception. --- .../sk89q/worldedit/util/command/parametric/BindingHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/util/command/parametric/BindingHelper.java b/src/main/java/com/sk89q/worldedit/util/command/parametric/BindingHelper.java index a104d6776..b442da6a2 100644 --- a/src/main/java/com/sk89q/worldedit/util/command/parametric/BindingHelper.java +++ b/src/main/java/com/sk89q/worldedit/util/command/parametric/BindingHelper.java @@ -178,7 +178,7 @@ public class BindingHelper implements Binding { } else if (e.getCause() instanceof CommandException) { throw (CommandException) e.getCause(); } - throw new ParameterException(e.getCause()); + throw new RuntimeException(e.getCause()); } }