parsers: fix text field namespacing in StreamError

skip-changelog
This commit is contained in:
Saarko 2025-07-18 14:39:07 +02:00 committed by Link Mauve
commit 7c87d879d8
6 changed files with 198 additions and 75 deletions

View file

@ -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`].