[as3] Fixed error message when passing the wrong object to Atlas constructor. Closes #1684.

This commit is contained in:
badlogic 2020-06-03 13:34:41 +02:00
parent c55b20d4fa
commit bcfff2d3c8

View File

@ -45,7 +45,7 @@ package spine.atlas {
else if (object is ByteArray)
load(ByteArray(object).readUTFBytes(ByteArray(object).length), textureLoader);
else
throw new ArgumentError("object must be a TextureAtlas or AttachmentLoader.");
throw new ArgumentError("object must be a string or ByteArray containing .atlas data.");
}
protected function load(atlasText : String, textureLoader : TextureLoader) : void {