Handle error from ProcessContent in HubBackend
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-12-09 17:59:06 +01:00
parent d93530a237
commit 5dcb64cc28
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 374322D56E5209E8

View File

@ -113,8 +113,11 @@ func (h *hubIncomingBackend) UpdateFeed(feedID int64, contentType string, body i
return err
}
log.Printf("updating feed %d - %s %s\n", feedID, u, channel)
h.backend.ProcessContent(channel, u, contentType, body)
log.Printf("Updating feed %d - %s %s\n", feedID, u, channel)
err = h.backend.ProcessContent(channel, u, contentType, body)
if err != nil {
log.Printf("Error while updating content for channel %s: %s", channel, err)
}
return err
}