Make sure completion get called if our our database code errors out.
This commit is contained in:
parent
6d60053012
commit
c2d418c9ed
|
@ -48,10 +48,12 @@ class CloudKitArticlesZoneDelegate: CloudKitZoneDelegate {
|
||||||
|
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
os_log(.error, log: self.log, "Error occurred geting pending starred records: %@", error.localizedDescription)
|
os_log(.error, log: self.log, "Error occurred geting pending starred records: %@", error.localizedDescription)
|
||||||
|
completion(.failure(CloudKitZoneError.unknown))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
os_log(.error, log: self.log, "Error occurred getting pending read status records: %@", error.localizedDescription)
|
os_log(.error, log: self.log, "Error occurred getting pending read status records: %@", error.localizedDescription)
|
||||||
|
completion(.failure(CloudKitZoneError.unknown))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue