Replace assert!()s with proper errors in parsers.
This commit is contained in:
parent
6a0724d133
commit
fc7a0517d3
8 changed files with 23 additions and 8 deletions
|
|
@ -64,7 +64,7 @@ pub fn parse_ibb(root: &Element) -> Result<IBB, Error> {
|
|||
stanza: stanza
|
||||
})
|
||||
} else {
|
||||
Err(Error::ParseError("Unknown ibb element."))
|
||||
Err(Error::ParseError("This is not an ibb element."))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue