From 87a85d8e11a564b148ee8e50c8d3434acaf7a7aa Mon Sep 17 00:00:00 2001 From: mossroy Date: Fri, 28 Feb 2014 16:35:23 +0100 Subject: [PATCH] Revert commit c592027, to re-enable error messages when data or coordinate files are not found --- www/js/lib/archive.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/www/js/lib/archive.js b/www/js/lib/archive.js index 8b80a9a1..b37b1d69 100644 --- a/www/js/lib/archive.js +++ b/www/js/lib/archive.js @@ -111,10 +111,10 @@ define(function(require) { index + 1); }, function(error) { // TODO there must be a better to way to detect a FileNotFound - // if (error != "NotFoundError") { - // alert("Error reading data file " + index + " in directory " - // + directory + " : " + error); - // } + if (error != "NotFoundError") { + alert("Error reading data file " + index + " in directory " + + directory + " : " + error); + } }); }; @@ -142,10 +142,10 @@ define(function(require) { index + 1); }, function(error) { // TODO there must be a better to way to detect a FileNotFound - // if (error != "NotFoundError") { - // alert("Error reading coordinates file " + index + " in directory " - // + directory + " : " + error); - // } + if (error != "NotFoundError") { + alert("Error reading coordinates file " + index + " in directory " + + directory + " : " + error); + } }); };