Fix error handling.
This commit is contained in:
parent
f825789c7e
commit
50283af0ff
@ -251,8 +251,10 @@ public extension OWSAttachmentDownloads {
|
||||
attachmentPointer: attachmentPointer)
|
||||
}
|
||||
}.ensure(on: .global()) {
|
||||
if !OWSFileSystem.deleteFileIfExists(url: encryptedFileUrl) {
|
||||
owsFailDebug("Could not delete encrypted data file.")
|
||||
do {
|
||||
try OWSFileSystem.deleteFileIfExists(url: encryptedFileUrl)
|
||||
} catch {
|
||||
owsFailDebug("Error: \(error).")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user