Slightly improve error handling when reading files

This commit is contained in:
mossroy 2013-01-25 18:58:03 +01:00
parent 23bbb3fa88
commit 7e4d9aa64a

View File

@ -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 {