Logger.error("\(self.logTag) could not determine CloudKit account status:\(error).")
Logger.error("\(self.logTag) could not determine CloudKit account status:\(String(describing:error)).")
OWSAlerts.showErrorAlert(withMessage:NSLocalizedString("CLOUDKIT_STATUS_COULD_NOT_DETERMINE",comment:"Error indicating that the app could not determine that user's CloudKit account status"))
OWSAlerts.showErrorAlert(withMessage:NSLocalizedString("CLOUDKIT_STATUS_COULD_NOT_DETERMINE",comment:"Error indicating that the app could not determine that user's CloudKit account status"))
completion(false)
completion(false)
case.noAccount:
case.noAccount:
@ -89,7 +81,6 @@ import CloudKit
OWSAlerts.showErrorAlert(withMessage:NSLocalizedString("CLOUDKIT_STATUS_RESTRICTED",comment:"Error indicating that the app was prevented from accessing the user's CloudKit account."))
OWSAlerts.showErrorAlert(withMessage:NSLocalizedString("CLOUDKIT_STATUS_RESTRICTED",comment:"Error indicating that the app was prevented from accessing the user's CloudKit account."))
completion(false)
completion(false)
case.available:
case.available:
Logger.error("\(self.logTag) no CloudKit account.")