Browse Source

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

badlogic 5 years ago
parent
commit
bcfff2d3c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-as3/spine-as3/src/spine/atlas/Atlas.as

+ 1 - 1
spine-as3/spine-as3/src/spine/atlas/Atlas.as

@@ -45,7 +45,7 @@ package spine.atlas {
 			else if (object is ByteArray)
 			else if (object is ByteArray)
 				load(ByteArray(object).readUTFBytes(ByteArray(object).length), textureLoader);
 				load(ByteArray(object).readUTFBytes(ByteArray(object).length), textureLoader);
 			else
 			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 {
 		protected function load(atlasText : String, textureLoader : TextureLoader) : void {