mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 09:38:23 +02:00
Update error handling and logging
This commit is contained in:
@@ -102,7 +102,7 @@ async function idbCount() {
|
||||
async function idbClean(keepSet) {
|
||||
if (!db) return null;
|
||||
if (!keepSet instanceof Set) {
|
||||
console.error("IndexedDB cleaning function must be given a Set() of hashes to keep");
|
||||
throw new TypeError("IndexedDB cleaning function must be given a Set() of hashes to keep");
|
||||
};
|
||||
return new Promise((resolve, reject) => {
|
||||
let counter = 0;
|
||||
|
||||
Reference in New Issue
Block a user