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

This commit is contained in:
BuildTools 2016-02-25 10:23:31 +01:00 committed by Olof Larsson
parent cf85faf47e
commit 8668b9b744

View File

@ -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.");
}
}