mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 20:13:35 -04:00
Slightly improve error handling when reading files
This commit is contained in:
parent
23bbb3fa88
commit
7e4d9aa64a
@ -40,12 +40,12 @@ if (storage != null) {
|
|||||||
filerequest.onsuccess = function() {
|
filerequest.onsuccess = function() {
|
||||||
titleFile = filerequest.result;
|
titleFile = filerequest.result;
|
||||||
};
|
};
|
||||||
filerequest.onerror = function() {
|
filerequest.onerror = function(event) {
|
||||||
alert("error reading title file");
|
alert("error reading title file : " + event.target.error.name);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
filerequest.onerror = function() {
|
filerequest.onerror = function(event) {
|
||||||
alert("error reading data file");
|
alert("error reading data file : " + event.target.error.name);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user