Feed: Print an error in stderr before discarding it.
This commit is contained in:
parent
3c7ba8c9d9
commit
031078284c
@ -44,8 +44,11 @@ impl Feed {
|
||||
fn index_channel_items(self, pd: Podcast) -> Box<Future<Item = (), Error = DataError> + Send> {
|
||||
let stream = stream::iter_ok::<_, DataError>(self.channel.items_owened());
|
||||
let insert = stream
|
||||
// FIXME: print the error
|
||||
.filter_map(move |item| glue(&item, pd.id()).ok())
|
||||
.filter_map(move |item| {
|
||||
glue(&item, pd.id())
|
||||
.map_err(|err| error!("Failed to parse an episode: {}", err))
|
||||
.ok()
|
||||
})
|
||||
.filter_map(|state| match state {
|
||||
IndexState::NotChanged => None,
|
||||
// Update individual rows, and filter them
|
||||
|
||||
Loading…
Reference in New Issue
Block a user