Report key when failing

While loading sprite sheet.
This commit is contained in:
Luc Bloom 2014-07-15 16:47:49 +02:00
parent 6a0b8b5e73
commit 7498e6aa6e

View file

@ -59,7 +59,7 @@ Phaser.AnimationParser = {
// Zero or smaller than frame sizes?
if (width === 0 || height === 0 || width < frameWidth || height < frameHeight || total === 0)
{
console.warn("Phaser.AnimationParser.spriteSheet: width/height zero or width/height < given frameWidth/frameHeight");
console.warn("Phaser.AnimationParser.spriteSheet: '" + key + "'s width/height zero or width/height < given frameWidth/frameHeight");
return null;
}