aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 5764ae4..de59f18 100644
--- a/main.go
+++ b/main.go
@@ -60,7 +60,9 @@ func run() error {
return fmt.Errorf("Configuration invalid: %w", err)
}
- feed.Parse(feeds)
+ if success := feed.Parse(feeds); success == 0 {
+ return fmt.Errorf("No successfull feed fetch.")
+ }
imapUrl, err := url.Parse(cfg.Target)
if err != nil {