aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/parse.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-25 21:40:08 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-25 21:40:08 +0200
commit5834d93e1d1fbddde7d5be2ebaabca254ab8bba4 (patch)
tree475b516bc1a7dce1f1be36b64e304fab086d2ac9 /internal/feed/parse.go
parent367e81e707c1736e8c1b57b8b375cbd3dd4cc92a (diff)
downloadfeed2imap-go-5834d93e1d1fbddde7d5be2ebaabca254ab8bba4.tar.gz
feed2imap-go-5834d93e1d1fbddde7d5be2ebaabca254ab8bba4.tar.bz2
feed2imap-go-5834d93e1d1fbddde7d5be2ebaabca254ab8bba4.zip
Make errors from exec calls always being printed as errors
Diffstat (limited to '')
-rw-r--r--internal/feed/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/feed/parse.go b/internal/feed/parse.go
index 77dfe69..b08c286 100644
--- a/internal/feed/parse.go
+++ b/internal/feed/parse.go
@@ -70,7 +70,7 @@ func handleFeed(feed *Feed) {
err := feed.parse()
if err != nil {
- if feed.cached.Failures() >= feed.Global.MaxFailures {
+ if feed.Url == "" || feed.cached.Failures() >= feed.Global.MaxFailures {
log.Error(err)
} else {
log.Print(err)