Handle another type of corrupted backup file

This commit is contained in:
Selfhost Alt 2022-05-30 23:45:02 -07:00
parent 705aac40d7
commit 1350a91fba

View File

@ -141,6 +141,9 @@ class BackupManager {
if (error.message === "Bad archive") {
Logger.warn(`[BackupManager] Backup appears to be corrupted: ${fullFilePath}`)
continue;
} else if (error.message === "unexpected end of file") {
Logger.warn(`[BackupManager] Backup appears to be corrupted: ${fullFilePath}`)
continue;
} else {
throw error
}