Send WrappedCommandException to the logger.

This commit is contained in:
sk89q 2014-07-09 23:08:17 -07:00
parent 4e69c7263f
commit dd497fdcb1

View File

@ -241,7 +241,7 @@ public final class CommandManager {
Throwable t = e.getCause();
actor.printError("Please report this error: [See console]");
actor.printRaw(t.getClass().getName() + ": " + t.getMessage());
t.printStackTrace();
logger.log(Level.SEVERE, "An unexpected error while handling a WorldEdit command", t);
} catch (CommandException e) {
String message = e.getMessage();
if (message != null) {