parsers: fix text field namespacing in StreamError
skip-changelog
This commit is contained in:
parent
0ebc3ca04c
commit
7c87d879d8
6 changed files with 198 additions and 75 deletions
|
|
@ -401,11 +401,7 @@ pub(super) fn parse_error_to_stream_error(e: xso::error::Error) -> StreamError {
|
|||
Error::TextParseError(_) | Error::Other(_) => DefinedCondition::InvalidXml,
|
||||
Error::TypeMismatch => DefinedCondition::UnsupportedStanzaType,
|
||||
};
|
||||
StreamError {
|
||||
condition,
|
||||
text: Some((None, e.to_string())),
|
||||
application_specific: vec![],
|
||||
}
|
||||
StreamError::new(condition, "en", e.to_string())
|
||||
}
|
||||
|
||||
/// Worker system for a [`StanzaStream`].
|
||||
|
|
|
|||
Loading…
Reference in a new issue