Set Smtp.error when SMTP fails to send message

This commit is contained in:
Alexander Krotov
2019-09-05 05:29:21 +03:00
parent c8d945db56
commit 094d46293e

View File

@@ -152,6 +152,7 @@ impl Smtp {
}
Err(err) => {
warn!(context, 0, "SMTP failed to send message: {}", err);
self.error = Some(format!("{}", err));
0
}
}