Make sure completion get called if our our database code errors out.

This commit is contained in:
Maurice Parker 2020-05-01 16:50:18 -05:00
parent 6d60053012
commit c2d418c9ed
1 changed files with 2 additions and 0 deletions

View File

@ -48,10 +48,12 @@ class CloudKitArticlesZoneDelegate: CloudKitZoneDelegate {
case .failure(let error):
os_log(.error, log: self.log, "Error occurred geting pending starred records: %@", error.localizedDescription)
completion(.failure(CloudKitZoneError.unknown))
}
}
case .failure(let error):
os_log(.error, log: self.log, "Error occurred getting pending read status records: %@", error.localizedDescription)
completion(.failure(CloudKitZoneError.unknown))
}
}