From a957482ee618d07646480fdfeca94742959fc1a6 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 28 Jun 2014 17:37:47 -0700 Subject: [PATCH] Ignore cause when handling ParameterException in ParametricCallable. --- .../util/command/parametric/ParametricCallable.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricCallable.java b/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricCallable.java index c0317c435..9cbecc03e 100644 --- a/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricCallable.java +++ b/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricCallable.java @@ -225,12 +225,6 @@ class ParametricCallable implements CommandCallable { } catch (UnconsumedParameterException e) { throw new InvalidUsageException("Too many parameters! Unused parameters: " + e.getUnconsumed(), getDescription()); } catch (ParameterException e) { - if (e.getCause() != null) { - for (ExceptionConverter converter : builder.getExceptionConverters()) { - converter.convert(e.getCause()); - } - } - assert parameter != null; String name = parameter.getName();