Better money debug

This commit is contained in:
Magnus Ulf 2019-01-21 20:41:47 +01:00
parent 7b5b51c992
commit 173852eb00

View File

@ -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;
}