diff options
Diffstat (limited to 'filamento/src/error.rs')
-rw-r--r-- | filamento/src/error.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/filamento/src/error.rs b/filamento/src/error.rs index 206d6be..6277292 100644 --- a/filamento/src/error.rs +++ b/filamento/src/error.rs @@ -26,11 +26,11 @@ pub enum Error { SetStatus(#[from] StatusError), // TODO: have different ones for get/update/set #[error("roster: {0}")] - Roster(RosterError), + Roster(#[from] RosterError), #[error("stream error: {0}")] Stream(#[from] stanza::stream::Error), #[error("message send error: {0}")] - MessageSend(MessageSendError), + MessageSend(#[from] MessageSendError), #[error("message receive error: {0}")] MessageRecv(#[from] MessageRecvError), } @@ -82,6 +82,8 @@ pub enum RosterError { Read(#[from] ReadError), #[error("stanza error: {0}")] StanzaError(#[from] stanza::client::error::Error), + #[error("could not reply to roster push: {0}")] + PushReply(WriteError), } #[derive(Debug, Error, Clone)] |