Correct Feed Provider feed creation error handling

This commit is contained in:
Maurice Parker 2020-05-07 15:09:26 -05:00
parent 715804fe64
commit 4aa0033270
2 changed files with 8 additions and 6 deletions

View File

@ -632,9 +632,9 @@ private extension CloudKitAccountDelegate {
}
}
case .failure(let error):
case .failure:
self.refreshProgress.clear()
completion(.failure(error))
completion(.failure(AccountError.createErrorNotFound))
}
}
}

View File

@ -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))
}
}
}