Log TSAttachment migration FileHandle error while replacing filename

This commit is contained in:
Harry 2024-08-12 14:07:07 -07:00 committed by GitHub
parent 4da6a79253
commit fb73508927
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)")
}
}()