From c2d418c9ed504c39ff5f64bb17ea9ed4d5114bc7 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 1 May 2020 16:50:18 -0500 Subject: [PATCH] Make sure completion get called if our our database code errors out. --- Frameworks/Account/CloudKit/CloudKitArticlesZoneDelegate.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Frameworks/Account/CloudKit/CloudKitArticlesZoneDelegate.swift b/Frameworks/Account/CloudKit/CloudKitArticlesZoneDelegate.swift index d283d9eaf..a5fff9ab3 100644 --- a/Frameworks/Account/CloudKit/CloudKitArticlesZoneDelegate.swift +++ b/Frameworks/Account/CloudKit/CloudKitArticlesZoneDelegate.swift @@ -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)) } }