Do not swallow IOException during backup creation.

This commit is contained in:
Greyson Parrelli
2026-04-09 16:46:09 -04:00
committed by jeffrey-signal
parent b57d922cdf
commit bef4bb40ca

View File

@@ -496,6 +496,11 @@ class BackupMessagesJob private constructor(
this.dataFile = ""
BackupRepository.markBackupCreationFailed(BackupValues.BackupCreationError.NOT_ENOUGH_DISK_SPACE)
return BackupFileResult.Failure
} else {
Log.w(TAG, "Exception during backup export", e)
tempBackupFile.delete()
this.dataFile = ""
return BackupFileResult.Retry
}
}