Change Feedbin to always check the error from Account.update.

This commit is contained in:
Maurice Parker 2019-12-17 13:25:01 -07:00
parent d17a0699d6
commit 7192a6893e
1 changed files with 11 additions and 2 deletions

View File

@ -1150,8 +1150,11 @@ private extension FeedbinAccountDelegate {
switch result { switch result {
case .success(let entries): case .success(let entries):
self.processEntries(account: account, entries: entries) { _ in self.processEntries(account: account, entries: entries) { error in
group.leave() group.leave()
if error != nil {
errorOccurred = true
}
} }
case .failure(let error): case .failure(let error):
@ -1188,8 +1191,14 @@ private extension FeedbinAccountDelegate {
switch result { switch result {
case .success(let (entries, nextPage)): case .success(let (entries, nextPage)):
self.processEntries(account: account, entries: entries) { _ in self.processEntries(account: account, entries: entries) { error in
self.refreshProgress.completeTask() self.refreshProgress.completeTask()
if let error = error {
completion(.failure(error))
return
}
self.refreshArticles(account, page: nextPage, updateFetchDate: updateFetchDate, completion: completion) self.refreshArticles(account, page: nextPage, updateFetchDate: updateFetchDate, completion: completion)
} }