mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-06 22:19:04 +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") {
|
if (error.message === "Bad archive") {
|
||||||
Logger.warn(`[BackupManager] Backup appears to be corrupted: ${fullFilePath}`)
|
Logger.warn(`[BackupManager] Backup appears to be corrupted: ${fullFilePath}`)
|
||||||
continue;
|
continue;
|
||||||
|
} else if (error.message === "unexpected end of file") {
|
||||||
|
Logger.warn(`[BackupManager] Backup appears to be corrupted: ${fullFilePath}`)
|
||||||
|
continue;
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user