mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 12:01:15 -04:00
Revert commit c592027, to re-enable error messages when data or coordinate files are not found
This commit is contained in:
parent
26f0f5fbf8
commit
87a85d8e11
@ -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);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user