[libgdx] Better exception message.

This commit is contained in:
Nathan Sweet 2017-09-04 13:41:34 +02:00
parent 4abea9e4ad
commit 247d94f10b

View File

@ -100,7 +100,9 @@ public class SkeletonRenderer {
continue;
} else if (attachment instanceof MeshAttachment) {
throw new RuntimeException("SkeletonMeshRenderer is required to render meshes.");
throw new RuntimeException(
"SkeletonRenderer#draw(PolygonSpriteBatch, Skeleton) or #draw(TwoColorPolygonBatch, Skeleton) must be used to "
+ "render meshes.");
} else if (attachment instanceof SkeletonAttachment) {
Skeleton attachmentSkeleton = ((SkeletonAttachment)attachment).getSkeleton();