From bcfff2d3c808a393f9f88a47a092066b17f9ef96 Mon Sep 17 00:00:00 2001 From: badlogic Date: Wed, 3 Jun 2020 13:34:41 +0200 Subject: [PATCH] [as3] Fixed error message when passing the wrong object to Atlas constructor. Closes #1684. --- spine-as3/spine-as3/src/spine/atlas/Atlas.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-as3/spine-as3/src/spine/atlas/Atlas.as b/spine-as3/spine-as3/src/spine/atlas/Atlas.as index f4142ba69..96eb5c348 100644 --- a/spine-as3/spine-as3/src/spine/atlas/Atlas.as +++ b/spine-as3/spine-as3/src/spine/atlas/Atlas.as @@ -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 {