diff options
Diffstat (limited to 'filamento/src/error.rs')
-rw-r--r-- | filamento/src/error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/filamento/src/error.rs b/filamento/src/error.rs index c5fdb03..206d6be 100644 --- a/filamento/src/error.rs +++ b/filamento/src/error.rs @@ -103,8 +103,12 @@ impl From<sqlx::Error> for DatabaseOpenError { #[derive(Debug, Error, Clone)] // TODO: should probably have all iq query related errors here, including read, write, stanza error, etc. pub enum IqError { + #[error("writing response: {0}")] + WriteError(#[from] WriteError), #[error("no iq with id matching `{0}`")] NoMatchingId(String), + #[error("incorrect addressee: {0}")] + IncorrectAddressee(jid::JID), } #[derive(Debug, Error, Clone)] |