More easily fix bugs where a message i neither string nor mson

This commit is contained in:
BuildTools authored and Olof Larsson committed 2016-02-26 12:07:14 +01:00
1 parent cf85faf47e
commit 8668b9b744
1 file changed
+2 -1
@@ -111,7 +111,8 @@ public class MessageMixinDefault extends MessageMixinAbstract
}
else
{
throw new IllegalArgumentException("The messages must be either String or Mson.");
String desc = first == null ? "null" : first.getClass().getSimpleName();
throw new IllegalArgumentException(desc + " is neither String nor Mson.");
}
}