mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-24 04:44:57 +02:00
Handle another type of corrupted backup file
This commit is contained in:
parent
705aac40d7
commit
1350a91fba
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue