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),
|
||||
}
|
||||
},
|
||||
Err(e) => {
|
||||
error!("Error parsing PubSub event: {}", e);
|
||||
}
|
||||
_ => unimplemented!(),
|
||||
_ => unimplemented!("PubSub event: {:#?}", event),
|
||||
}
|
||||
events
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue