diff --git a/src/iq.rs b/src/iq.rs index f040b1bde2218da1872a21da6ac040c19f6aecde..b62168983f465922b1898dec935c84c70817c0ba 100644 --- a/src/iq.rs +++ b/src/iq.rs @@ -145,7 +145,7 @@ impl<'a> TryFrom<&'a Element> for Iq { return Err(Error::ParseError("Wrong number of children in iq element.")); } } else { - panic!() + return Err(Error::ParseError("Unknown iq type.")); }; Ok(Iq {