Log TSAttachment migration FileHandle error while replacing filename
This commit is contained in:
parent
4da6a79253
commit
fb73508927
@ -320,7 +320,9 @@ extension TSAttachmentMigration {
|
||||
do {
|
||||
return try TSAttachmentMigration.OWSImageSource(fileUrl: unencryptedFileUrl)
|
||||
} catch {
|
||||
throw OWSAssertionError("Failed to open file handle image source")
|
||||
var errorString = "\(error)"
|
||||
errorString = errorString.replacingOccurrences(of: unencryptedFileUrl.lastPathComponent, with: "xxxx")
|
||||
throw OWSAssertionError("Failed to open file handle image source \(errorString)")
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user