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()
|
self.refreshProgress.clear()
|
||||||
completion(.failure(error))
|
completion(.failure(AccountError.createErrorNotFound))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -272,13 +272,15 @@ private extension LocalAccountDelegate {
|
||||||
account.update(urlString, with: parsedItems) { _ in
|
account.update(urlString, with: parsedItems) { _ in
|
||||||
completion(.success(feed))
|
completion(.success(feed))
|
||||||
}
|
}
|
||||||
case .failure:
|
case .failure(let error):
|
||||||
completion(.failure(AccountError.createErrorNotFound))
|
self.refreshProgress.clear()
|
||||||
|
completion(.failure(error))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
case .failure(let error):
|
case .failure:
|
||||||
completion(.failure(error))
|
self.refreshProgress.clear()
|
||||||
|
completion(.failure(AccountError.createErrorNotFound))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue