More easily fix bugs where a message i neither string nor mson
This commit is contained in:
parent
cf85faf47e
commit
8668b9b744
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user