From 686331d1a579c71848178088ac002a7b455b7363 Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Mon, 28 Feb 2011 19:23:25 +0100 Subject: [PATCH] Better error status message. --- web/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/map.js b/web/map.js index fb274ff4..78d9b2cc 100644 --- a/web/map.js +++ b/web/map.js @@ -336,9 +336,9 @@ DynMap.prototype = { //divs.filter(function(i){return parseInt(divs[i].attr('rel')) > timestamp+me.options.messagettl;}).remove(); }); setTimeout(function() { me.update(); }, me.options.updaterate); - }, function(status, statusText, ex) { + }, function(status, statusText, request) { me.alertbox - .text('Could not update map: ' + statusText) + .text('Could not update map: ' + (statusText || 'Could not connect to server')) .show(); setTimeout(function() { me.update(); }, me.options.updaterate); }