From 3b46f5d54ec0d4bfbe5e9b07f224f067f70e2f5b Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Wed, 5 Jun 2013 03:37:41 +0100 Subject: [PATCH] log when response map tiles have individual tile errors for debugging #320 --- code/map_data.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/map_data.js b/code/map_data.js index ff66004c..f1fbef00 100644 --- a/code/map_data.js +++ b/code/map_data.js @@ -94,6 +94,10 @@ window.handleDataResponse = function(data, textStatus, jqXHR) { var ppp = {}; var p2f = {}; $.each(m, function(qk, val) { + if('error' in val) { + console.log('map data tile '+qk+' response error: '+val.error); + } + $.each(val.deletedGameEntityGuids || [], function(ind, guid) { if(getTypeByGuid(guid) === TYPE_FIELD && window.fields[guid] !== undefined) { $.each(window.fields[guid].options.vertices, function(ind, vertex) {