mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Added a handler for the Err case when parsing a PubSub event.
This commit is contained in:
parent
e20bd9b1d2
commit
7579173cf9
1 changed files with 4 additions and 1 deletions
|
@ -72,8 +72,11 @@ pub(crate) async fn handle_event(from: &Jid, elem: Element, agent: &mut Agent) -
|
||||||
}
|
}
|
||||||
ref node => unimplemented!("node {}", node),
|
ref node => unimplemented!("node {}", node),
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
Err(e) => {
|
||||||
|
error!("Error parsing PubSub event: {}", e);
|
||||||
}
|
}
|
||||||
_ => unimplemented!(),
|
_ => unimplemented!("PubSub event: {:#?}", event),
|
||||||
}
|
}
|
||||||
events
|
events
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue