Check for error before printing message
This commit is contained in:
parent
97a98bbfed
commit
55b279f363
|
@ -353,11 +353,15 @@ func (b *memoryBackend) ProcessContent(channel, fetchURL, contentType string, bo
|
|||
for _, item := range items {
|
||||
item.Read = false
|
||||
err = b.channelAddItem(conn, channel, item)
|
||||
if err != nil {
|
||||
log.Printf("ERROR: %s\n", err)
|
||||
}
|
||||
}
|
||||
|
||||
err = b.updateChannelUnreadCount(conn, channel)
|
||||
if err != nil {
|
||||
log.Printf("error: while updating channel unread count for %s: %s\n", channel, err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user