Skip to content

Commit

Permalink
Return error if failed to load Rss from file to prevent overriding of…
Browse files Browse the repository at this point in the history
… URLs
  • Loading branch information
itsjunetime committed Dec 19, 2023
1 parent 94b0ee0 commit 3a30641
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func New(urlPath, cacheDir string, resetCache bool) (*Backend, error) {

if err = rss.Load(); err != nil {
log.Println("Rss load failed: ", err)
return nil, fmt.Errorf("backend.New: %w", err)
}

return &Backend{rss, store, readStatus}, nil
Expand Down

0 comments on commit 3a30641

Please sign in to comment.