Skip to content

Commit

Permalink
Add entries storage error to feed errors count
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Oct 21, 2018
1 parent a614f98 commit 85d48c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reader/feed/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 85d48c8

Please sign in to comment.