aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index f2a2447..8d3aa15 100644
--- a/main.go
+++ b/main.go
@@ -85,7 +85,10 @@ func run() error {
return fmt.Errorf("Configuration invalid: %w", err)
}
- state := feed.NewState(cfg)
+ state, err := feed.NewState(cfg)
+ if err != nil {
+ return err
+ }
err = state.LoadCache(cacheFile, buildCache)
if err != nil {