diff --git a/src/core/textures/Texture.js b/src/core/textures/Texture.js index ca31456..6403d4f 100644 --- a/src/core/textures/Texture.js +++ b/src/core/textures/Texture.js @@ -459,7 +459,9 @@ if (frame.x + frame.width > this.baseTexture.width || frame.y + frame.height > this.baseTexture.height) { - throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions ${this}`); + throw new Error('Texture Error: frame does not fit inside the base Texture dimensions: ' + + `X: ${frame.x} + ${frame.width} > ${this.baseTexture.width} ` + + `Y: ${frame.y} + ${frame.height} > ${this.baseTexture.height}`); } // this.valid = frame && frame.width && frame.height && this.baseTexture.source && this.baseTexture.hasLoaded;