Replace assert!()s with proper errors in parsers.

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-19 23:41:54 +01:00
commit fc7a0517d3
8 changed files with 23 additions and 8 deletions

View file

@ -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."))
}
}