Skip to content

Commit

Permalink
fix: don't overwrite rss urls file
Browse files Browse the repository at this point in the history
Return error if failed to load Rss from URLs file
  • Loading branch information
TypicalAM authored Dec 19, 2023
2 parents 94b0ee0 + 3a30641 commit 6c61481
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 6c61481

Please sign in to comment.