Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-27 03:12:37 +01:00
Ignore cause when handling ParameterException in ParametricCallable.
Dieser Commit ist enthalten in:
Ursprung
93a48bbb55
Commit
a957482ee6
@ -225,12 +225,6 @@ class ParametricCallable implements CommandCallable {
|
|||||||
} catch (UnconsumedParameterException e) {
|
} catch (UnconsumedParameterException e) {
|
||||||
throw new InvalidUsageException("Too many parameters! Unused parameters: " + e.getUnconsumed(), getDescription());
|
throw new InvalidUsageException("Too many parameters! Unused parameters: " + e.getUnconsumed(), getDescription());
|
||||||
} catch (ParameterException e) {
|
} catch (ParameterException e) {
|
||||||
if (e.getCause() != null) {
|
|
||||||
for (ExceptionConverter converter : builder.getExceptionConverters()) {
|
|
||||||
converter.convert(e.getCause());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
assert parameter != null;
|
assert parameter != null;
|
||||||
String name = parameter.getName();
|
String name = parameter.getName();
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren