Added error message tracking into the tile loading mechanism. This exposes the reason for the error in the console.log message

This commit is contained in:
Grant Echols 2015-07-06 15:06:00 -06:00
parent 8b71876c37
commit 9629f47c2c

View File

@ -1022,7 +1022,7 @@ function loadTile( tiledImage, tile, time ) {
function onTileLoad( tiledImage, tile, time, image, errorMsg ) { function onTileLoad( tiledImage, tile, time, image, errorMsg ) {
if ( !image ) { if ( !image ) {
$.console.log( "Tile %s failed to load: %s", tile.url, errorMsg ); $.console.log( "Tile %s failed to load: %s - error:", tile, tile.url, errorMsg );
if( !tiledImage.debugMode ){ if( !tiledImage.debugMode ){
tile.loading = false; tile.loading = false;
tile.exists = false; tile.exists = false;