mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Handle when CommandException.getMessage() is null in CommandManager.
Related to WORLDEDIT-3156.
This commit is contained in:
parent
d74237b15e
commit
393b0d3d7a
@ -243,7 +243,13 @@ public final class CommandManager {
|
||||
actor.printRaw(t.getClass().getName() + ": " + t.getMessage());
|
||||
t.printStackTrace();
|
||||
} catch (CommandException e) {
|
||||
String message = e.getMessage();
|
||||
if (message != null) {
|
||||
actor.printError(e.getMessage());
|
||||
} else
|
||||
actor.printError("An unknown error has occurred! Please see console.");
|
||||
logger.log(Level.SEVERE, "An unknown error occurred", e);
|
||||
}
|
||||
} finally {
|
||||
EditSession editSession = locals.get(EditSession.class);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user