mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +03:00
Display source for IMAP IDLE errors
This commit is contained in:
committed by
link2xt
parent
1b5d08e6ee
commit
43c4816739
@@ -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),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user