From d501bf818855c9e90254ef6f02901f90ac7075ea Mon Sep 17 00:00:00 2001 From: Kristof Vannotten Date: Sun, 6 Mar 2016 09:56:34 +0100 Subject: [PATCH] Added which feed could not be fetched rather than a cryptic error --- feedparser/feedparser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feedparser/feedparser.go b/feedparser/feedparser.go index 45e21aa..a90429b 100644 --- a/feedparser/feedparser.go +++ b/feedparser/feedparser.go @@ -72,7 +72,7 @@ func Parse(podcast configuration.Podcast, wg *sync.WaitGroup) { defer wg.Done() resp, err := doRequest(podcast.Feed, podcast.Username, podcast.Password) if err != nil { - fmt.Printf("Could not fetch feed: %s\n", err) + fmt.Printf("Could not fetch feed: %s due to:\n %s\n", podcast.Name, err) return } defer resp.Body.Close()