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

@ -159,17 +159,15 @@ pub struct HandledCountTooHigh {
impl From<HandledCountTooHigh> for crate::stream_error::StreamError {
fn from(other: HandledCountTooHigh) -> Self {
Self {
condition: crate::stream_error::DefinedCondition::UndefinedCondition,
text: Some((
None,
format!(
"You acknowledged {} stanza(s), while I only sent {} so far.",
other.h, other.send_count
),
)),
application_specific: vec![other.into()],
}
Self::new(
crate::stream_error::DefinedCondition::UndefinedCondition,
"en",
format!(
"You acknowledged {} stanza(s), while I only sent {} so far.",
other.h, other.send_count
),
)
.with_application_specific(vec![other.into()])
}
}