Skip to content
Permalink
Browse files

Wrap and unwrap.

Exceptions are fun.
  • Loading branch information...
wizjany committed May 30, 2019
1 parent a29afe8 commit 23ab79c999a18728ab3025bc438af06bb5798079
@@ -223,7 +223,13 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
} catch (Throwable t) {
Throwable next = t;
do {
WorldGuard.getInstance().getExceptionConverter().convert(next);
try {
WorldGuard.getInstance().getExceptionConverter().convert(next);
} catch (org.enginehub.piston.exception.CommandException pce) {
if (pce.getCause() instanceof CommandException) {
throw ((CommandException) pce.getCause());
}
}
next = next.getCause();
} while (next != null);

0 comments on commit 23ab79c

Please sign in to comment.
You can’t perform that action at this time.