mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-30 10:12:23 -04:00 
			
		
		
		
	Merge pull request #651 from selfhost-alt/handle-another-backup-parse-error
Gracefully handle unexpected end of file when listing backup files
This commit is contained in:
		
						commit
						2dba17a7ae
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user