Fail when trying to add a feed that isn't parsable. Fixes #2921

This commit is contained in:
Maurice Parker 2021-03-27 19:18:22 -05:00
parent e73b174473
commit 01682e3cfd

View File

@ -747,14 +747,16 @@ private extension CloudKitAccountDelegate {
}
case .failure(let error):
container.removeWebFeed(feed)
self.refreshProgress.completeTasks(3)
completion(.failure(error))
}
}
} else {
self.refreshProgress.completeTasks(4)
completion(.success(feed))
self.refreshProgress.completeTasks(3)
container.removeWebFeed(feed)
completion(.failure(AccountError.createErrorNotFound))
}
}