aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index a1f853b..b5cf446 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -2,6 +2,7 @@ use std::str::Utf8Error;
use rsasl::mechname::MechanismNameError;
+use crate::stanza::client::error::Error as ClientError;
use crate::{jid::ParseError, stanza::sasl::Failure};
#[derive(Debug)]
@@ -22,12 +23,14 @@ pub enum Error {
Negotiation,
TlsRequired,
UnexpectedEnd,
- UnexpectedElement,
+ UnexpectedElement(peanuts::Element),
UnexpectedText,
XML(peanuts::Error),
SASL(SASLError),
JID(ParseError),
Authentication(Failure),
+ ClientError(ClientError),
+ MissingError,
}
#[derive(Debug)]