mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Send WrappedCommandException to the logger.
This commit is contained in:
parent
4e69c7263f
commit
dd497fdcb1
@ -241,7 +241,7 @@ public final class CommandManager {
|
|||||||
Throwable t = e.getCause();
|
Throwable t = e.getCause();
|
||||||
actor.printError("Please report this error: [See console]");
|
actor.printError("Please report this error: [See console]");
|
||||||
actor.printRaw(t.getClass().getName() + ": " + t.getMessage());
|
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) {
|
} catch (CommandException e) {
|
||||||
String message = e.getMessage();
|
String message = e.getMessage();
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user