diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-23 23:48:09 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-23 23:48:09 +0200 |
commit | 8467dbb9bd9960191f16def3ba43dcbde0fdda14 (patch) | |
tree | 5af73797e16dfee0a49de72e122c570053988e51 /main.go | |
parent | 6911562cf4214531343b7509afe77e38b28a0801 (diff) | |
download | feed2imap-go-8467dbb9bd9960191f16def3ba43dcbde0fdda14.tar.gz feed2imap-go-8467dbb9bd9960191f16def3ba43dcbde0fdda14.tar.bz2 feed2imap-go-8467dbb9bd9960191f16def3ba43dcbde0fdda14.zip |
Notify about the number of successfully fetched feeds.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 { |