mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-08 09:04:43 +01:00
Handle another type of corrupted backup file
This commit is contained in:
parent
705aac40d7
commit
1350a91fba
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user