mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 06:16:30 +03:00
address @link2xt error comment
This commit is contained in:
@@ -115,7 +115,7 @@ impl Default for ImapConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Fail, Clone, Eq, PartialEq)]
|
#[derive(Debug, Fail)]
|
||||||
enum SelectError {
|
enum SelectError {
|
||||||
#[fail(display = "Could not obtain imap-session object.")]
|
#[fail(display = "Could not obtain imap-session object.")]
|
||||||
NoSession,
|
NoSession,
|
||||||
@@ -124,7 +124,7 @@ enum SelectError {
|
|||||||
ConnectionLost,
|
ConnectionLost,
|
||||||
|
|
||||||
#[fail(display = "imap-close (to expunge messages) failed: {}", _0)]
|
#[fail(display = "imap-close (to expunge messages) failed: {}", _0)]
|
||||||
CloseExpungeFailed(String),
|
CloseExpungeFailed(#[cause] async_imap::error::Error),
|
||||||
|
|
||||||
#[fail(display = "Folder name invalid: {:?}", _0)]
|
#[fail(display = "Folder name invalid: {:?}", _0)]
|
||||||
BadFolderName(String),
|
BadFolderName(String),
|
||||||
@@ -462,7 +462,7 @@ impl Imap {
|
|||||||
info!(context, "close/expunge succeeded");
|
info!(context, "close/expunge succeeded");
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
return Err(SelectError::CloseExpungeFailed(err.to_string()));
|
return Err(SelectError::CloseExpungeFailed(err));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user