More easily fix bugs where a message i neither string nor mson
This commit is contained in:
1 parent
cf85faf47e
commit
8668b9b744
1 file changed
+2
-1
@@ -111,7 +111,8 @@ public class MessageMixinDefault extends MessageMixinAbstract
|
|||||||
}
|
}
|
||||||
else
|
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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user