Handle errors when converting lazyfiles to eagerfiles

GitOrigin-RevId: 6ada48e2f2b7ffee9c8560856436dc5e2076099d
This commit is contained in:
Andrew Rumble
2025-06-24 12:12:17 +01:00
committed by Copybot
parent 745043ca92
commit 34b674aa6f

View File

@@ -298,7 +298,16 @@ async function addChunkToArchive(
logger.error({ filePath }, 'File not found in snapshot')
continue
}
await file.load('eager', blobStore)
try {
await file.load('eager', blobStore)
} catch (err) {
logger.error(
{ filePath, err },
'Failed to load file from snapshot, skipping'
)
continue
}
const hash = file.getHash()