From 173852eb003370f05061a408224d106cce567dd7 Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Mon, 21 Jan 2019 20:41:47 +0100 Subject: [PATCH] Better money debug --- src/com/massivecraft/massivecore/money/Money.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/massivecore/money/Money.java b/src/com/massivecraft/massivecore/money/Money.java index ed6d9eb3..cbcf3ab1 100644 --- a/src/com/massivecraft/massivecore/money/Money.java +++ b/src/com/massivecraft/massivecore/money/Money.java @@ -27,7 +27,7 @@ public class Money // ... but if something is supplied we must manage to extract an id. // NOTE: This ID is the name for now, later all money plugins will probably support UUIDs. String ret = MUtil.extract(String.class, "accountId", account); - if (ret == null) throw new IllegalArgumentException("extraction of accountId from object failed"); + if (ret == null) throw new IllegalArgumentException("extraction of accountId from object failed: " + account.toString()); return ret; }