mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +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)]
|
#[derive(Debug, Fail)]
|
||||||
pub enum SmtpError {
|
pub enum SmtpError {
|
||||||
#[fail(display = "Envelope error: {}", _0)]
|
#[fail(display = "Envelope error: {}", _0)]
|
||||||
EnvelopeError(lettre::error::Error),
|
EnvelopeError(#[cause] lettre::error::Error),
|
||||||
#[fail(display = "Send error: {}", _0)]
|
#[fail(display = "Send error: {}", _0)]
|
||||||
SendError(lettre::smtp::error::Error),
|
SendError(#[cause] lettre::smtp::error::Error),
|
||||||
#[fail(display = "SMTP has no transport")]
|
#[fail(display = "SMTP has no transport")]
|
||||||
NoTransport,
|
NoTransport,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user