Display source for IMAP IDLE errors

This commit is contained in:
Alexander Krotov
2020-07-07 11:10:02 +03:00
committed by link2xt
parent 1b5d08e6ee
commit 43c4816739

View File

@@ -13,19 +13,19 @@ type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, thiserror::Error)] #[derive(Debug, thiserror::Error)]
pub enum Error { pub enum Error {
#[error("IMAP IDLE protocol failed to init/complete")] #[error("IMAP IDLE protocol failed to init/complete: {0}")]
IdleProtocolFailed(#[from] async_imap::error::Error), IdleProtocolFailed(#[from] async_imap::error::Error),
#[error("IMAP IDLE protocol timed out")] #[error("IMAP IDLE protocol timed out: {0}")]
IdleTimeout(#[from] async_std::future::TimeoutError), IdleTimeout(#[from] async_std::future::TimeoutError),
#[error("IMAP server does not have IDLE capability")] #[error("IMAP server does not have IDLE capability")]
IdleAbilityMissing, IdleAbilityMissing,
#[error("IMAP select folder error")] #[error("IMAP select folder error: {0}")]
SelectFolderError(#[from] select_folder::Error), SelectFolderError(#[from] select_folder::Error),
#[error("Setup handle error")] #[error("Setup handle error: {0}")]
SetupHandleError(#[from] super::Error), SetupHandleError(#[from] super::Error),
} }