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:07:00 -06:00
parent 9629f47c2c
commit 5539487814

View File

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