Add a top level catch handler instead of silent swallows

This commit is contained in:
Manav Rathi
2024-07-29 20:36:35 +05:30
parent 3571281bef
commit 3dbdea472b

View File

@@ -278,7 +278,8 @@ const indexNextBatch = async (
delegate?.workerDidProcessFile();
// Possibly unnecessary, but let us drain the microtask queue.
await wait(0);
} catch {
} catch (e) {
log.warn(`Skipping unindexable file ${item.enteFile.id}`, e);
allSuccess = false;
}
}
@@ -474,7 +475,7 @@ const index = async (
throw e;
}
if (originalImageBlob)
if (originalImageBlob && exif)
await cmpNewLib2(enteFile, originalImageBlob, exif);
log.debug(() => {