summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2014-05-27 10:46:25 +0100
committerKHobbits <rob@khobbits.co.uk>2014-05-27 10:46:25 +0100
commite8b39f7e3c39269d54ef1b9e88725c3b315aa3b1 (patch)
tree790b0e1d865dbeadc8b5d1d80c6044c46a311872
parentc51381bba710325592e53cedb9172b5d451e783a (diff)
downloadEssentials-e8b39f7e3c39269d54ef1b9e88725c3b315aa3b1.tar
Essentials-e8b39f7e3c39269d54ef1b9e88725c3b315aa3b1.tar.gz
Essentials-e8b39f7e3c39269d54ef1b9e88725c3b315aa3b1.tar.lz
Essentials-e8b39f7e3c39269d54ef1b9e88725c3b315aa3b1.tar.xz
Essentials-e8b39f7e3c39269d54ef1b9e88725c3b315aa3b1.zip
Log takeMoney exception, even if we ignore it.
-rw-r--r--Essentials/src/com/earth2me/essentials/User.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java
index 8d35201c1..10afdfa98 100644
--- a/Essentials/src/com/earth2me/essentials/User.java
+++ b/Essentials/src/com/earth2me/essentials/User.java
@@ -195,7 +195,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
}
catch (MaxMoneyException ex)
{
- //We shouldn't be able to throw an exception on subtract money
+ ess.getLogger().log(Level.WARNING, "Invalid call to takeMoney, total balance can't be more than the max-money limit.", ex);
}
sendMessage(tl("takenFromAccount", NumberUtil.displayCurrency(value, ess)));
if (initiator != null)