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> {
|
fn index_channel_items(self, pd: Podcast) -> Box<Future<Item = (), Error = DataError> + Send> {
|
||||||
let stream = stream::iter_ok::<_, DataError>(self.channel.items_owened());
|
let stream = stream::iter_ok::<_, DataError>(self.channel.items_owened());
|
||||||
let insert = stream
|
let insert = stream
|
||||||
// FIXME: print the error
|
.filter_map(move |item| {
|
||||||
.filter_map(move |item| glue(&item, pd.id()).ok())
|
glue(&item, pd.id())
|
||||||
|
.map_err(|err| error!("Failed to parse an episode: {}", err))
|
||||||
|
.ok()
|
||||||
|
})
|
||||||
.filter_map(|state| match state {
|
.filter_map(|state| match state {
|
||||||
IndexState::NotChanged => None,
|
IndexState::NotChanged => None,
|
||||||
// Update individual rows, and filter them
|
// Update individual rows, and filter them
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user