Add entries storage error to feed errors count

This commit is contained in:
Frédéric Guillot 2018-10-21 11:44:29 -07:00
parent a614f98063
commit 85d48c8a71
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ func (h *Handler) RefreshFeed(userID, feedID int64) error {
// We don't update existing entries when the crawler is enabled (we crawl only inexisting entries).
if storeErr := h.store.UpdateEntries(originalFeed.UserID, originalFeed.ID, originalFeed.Entries, !originalFeed.Crawler); storeErr != nil {
originalFeed.WithError(storeErr.Error())
h.store.UpdateFeed(originalFeed)
return storeErr
}