mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 00:46:30 +03:00
feat: improve logging of connection failures
Previously it was not always clear whether IMAP or SMTP connection failed and what was the endpoint used.
This commit is contained in:
@@ -356,10 +356,10 @@ impl Imap {
|
||||
context,
|
||||
self.proxy_config.clone(),
|
||||
self.strict_tls,
|
||||
connection_candidate,
|
||||
&connection_candidate,
|
||||
)
|
||||
.await
|
||||
.context("IMAP failed to connect")
|
||||
.with_context(|| format!("IMAP failed to connect to {connection_candidate}"))
|
||||
{
|
||||
Ok(client) => client,
|
||||
Err(err) => {
|
||||
|
||||
Reference in New Issue
Block a user