aboutsummaryrefslogtreecommitdiffstats
path: root/crawler
diff options
context:
space:
mode:
Diffstat (limited to 'crawler')
-rw-r--r--crawler/crawler.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawler/crawler.go b/crawler/crawler.go
index e3e4aeb..faf0b70 100644
--- a/crawler/crawler.go
+++ b/crawler/crawler.go
@@ -57,7 +57,10 @@ func CrawlFeed(f *feed.Feed, ch chan<- string) {
item.Description = i.Summary
}
item.FeedId = f.Id
- item.Create()
+ err := item.Create()
+ if err != nil {
+ log.Println(err)
+ }
}
ch <- "successfully crawled " + f.Url
}