mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Don't throw a ParameterException for a regular exception.
This commit is contained in:
parent
3750190f2c
commit
c7988c7ad9
@ -178,7 +178,7 @@ public Object bind(ParameterData parameter, ArgumentStack scoped,
|
||||
} else if (e.getCause() instanceof CommandException) {
|
||||
throw (CommandException) e.getCause();
|
||||
}
|
||||
throw new ParameterException(e.getCause());
|
||||
throw new RuntimeException(e.getCause());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user