Catch uncaught file verification error

This commit is contained in:
Jaifroid 2024-04-22 12:31:14 +01:00
parent 589c4bc39a
commit 724392f750

View File

@ -1122,6 +1122,9 @@ function getNativeFSHandle (callback) {
searchForArchivesInPreferencesOrStorage(); searchForArchivesInPreferencesOrStorage();
} }
} }
}).catch(function (err) {
uiUtil.systemAlert('We could not verify permission for the requested file handle. Please try picking your archive again.', 'Verification failure!');
console.error(err);
}); });
} else { } else {
console.warn('No file or folder handle was previously stored in indexedDB'); console.warn('No file or folder handle was previously stored in indexedDB');