Skip to content

Commit

Permalink
Handle CommandException in WorldGuardPlugin.convertThrowable().
Browse files Browse the repository at this point in the history
  • Loading branch information
sk89q committed Aug 15, 2014
1 parent e43ce42 commit a35cb92
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -351,6 +351,8 @@ public String convertThrowable(@Nullable Throwable throwable) {
return "WorldGuard: Task was interrupted";
} else if (throwable instanceof UnresolvedNamesException) {
return throwable.getMessage();
} else if (throwable instanceof CommandException) {
return throwable.getMessage();
} else {
getLogger().log(Level.WARNING, "WorldGuard encountered an unexpected error", throwable);
return "WorldGuard: An unexpected error occurred! Please see the server console.";
Expand Down

0 comments on commit a35cb92

Please sign in to comment.