mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-04 20:06:06 +00:00
Ignore cause when handling ParameterException in ParametricCallable.
This commit is contained in:
parent
93a48bbb55
commit
a957482ee6
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user