mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +03:00
Mark error cause as such
See failure crate documentation.
This commit is contained in:
committed by
Floris Bruynooghe
parent
14287b12ae
commit
ac4108b05b
@@ -22,9 +22,9 @@ pub struct Smtp {
|
||||
#[derive(Debug, Fail)]
|
||||
pub enum SmtpError {
|
||||
#[fail(display = "Envelope error: {}", _0)]
|
||||
EnvelopeError(lettre::error::Error),
|
||||
EnvelopeError(#[cause] lettre::error::Error),
|
||||
#[fail(display = "Send error: {}", _0)]
|
||||
SendError(lettre::smtp::error::Error),
|
||||
SendError(#[cause] lettre::smtp::error::Error),
|
||||
#[fail(display = "SMTP has no transport")]
|
||||
NoTransport,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user