Correct Feed Provider feed creation error handling
This commit is contained in:
parent
715804fe64
commit
4aa0033270
|
@ -632,9 +632,9 @@ private extension CloudKitAccountDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
case .failure(let error):
|
||||
case .failure:
|
||||
self.refreshProgress.clear()
|
||||
completion(.failure(error))
|
||||
completion(.failure(AccountError.createErrorNotFound))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -272,13 +272,15 @@ private extension LocalAccountDelegate {
|
|||
account.update(urlString, with: parsedItems) { _ in
|
||||
completion(.success(feed))
|
||||
}
|
||||
case .failure:
|
||||
completion(.failure(AccountError.createErrorNotFound))
|
||||
case .failure(let error):
|
||||
self.refreshProgress.clear()
|
||||
completion(.failure(error))
|
||||
}
|
||||
}
|
||||
|
||||
case .failure(let error):
|
||||
completion(.failure(error))
|
||||
case .failure:
|
||||
self.refreshProgress.clear()
|
||||
completion(.failure(AccountError.createErrorNotFound))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue