diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-16 15:25:06 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-16 15:25:06 +0000 |
commit | a1b89ee75c5d61169c84a51c5b1af6e5e4e95b17 (patch) | |
tree | 7e18dfbcff5e1c21067c4d5e563bc2b3eedb8325 | |
parent | 981f08405fbb282a9e2e0e61de71074ca0da129b (diff) | |
download | Essentials-a1b89ee75c5d61169c84a51c5b1af6e5e4e95b17.tar Essentials-a1b89ee75c5d61169c84a51c5b1af6e5e4e95b17.tar.gz Essentials-a1b89ee75c5d61169c84a51c5b1af6e5e4e95b17.tar.lz Essentials-a1b89ee75c5d61169c84a51c5b1af6e5e4e95b17.tar.xz Essentials-a1b89ee75c5d61169c84a51c5b1af6e5e4e95b17.zip |
[trunk] Better log of command errors
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1224 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Essentials.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 1dba4c403..d3e3c6c06 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -572,6 +572,7 @@ public class Essentials extends JavaPlugin catch (Throwable ex) { sender.sendMessage(ChatColor.RED + "Error: " + ex.getMessage()); + logger.log(Level.WARNING, "Error calling command /"+commandLabel, ex); return true; } } |