Added a handler for the Err case when parsing a PubSub event.

This commit is contained in:
Werner Kroneman 2023-12-03 13:37:46 +00:00 committed by Link Mauve
parent e20bd9b1d2
commit 7579173cf9

View file

@ -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
} }