mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Handle errors when converting lazyfiles to eagerfiles
GitOrigin-RevId: 6ada48e2f2b7ffee9c8560856436dc5e2076099d
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user