From 7579173cf9cc314686f25dceef78d354e9966353 Mon Sep 17 00:00:00 2001 From: Werner Kroneman Date: Sun, 3 Dec 2023 13:37:46 +0000 Subject: [PATCH] Added a handler for the Err case when parsing a PubSub event. --- xmpp/src/pubsub/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xmpp/src/pubsub/mod.rs b/xmpp/src/pubsub/mod.rs index f0491577..363bcd20 100644 --- a/xmpp/src/pubsub/mod.rs +++ b/xmpp/src/pubsub/mod.rs @@ -72,8 +72,11 @@ pub(crate) async fn handle_event(from: &Jid, elem: Element, agent: &mut Agent) - } ref node => unimplemented!("node {}", node), } + }, + Err(e) => { + error!("Error parsing PubSub event: {}", e); } - _ => unimplemented!(), + _ => unimplemented!("PubSub event: {:#?}", event), } events }