mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
Abort on failing imap configuring
This commit is contained in:
@@ -461,7 +461,10 @@ async fn try_imap_connections(
|
|||||||
.await
|
.await
|
||||||
.is_ok()
|
.is_ok()
|
||||||
{
|
{
|
||||||
return Ok(()); // we directly return here if it was autoconfig or the connection succeeded
|
return Ok(());
|
||||||
|
}
|
||||||
|
if was_autoconfig {
|
||||||
|
bail!("autoconfig did not succeed");
|
||||||
}
|
}
|
||||||
|
|
||||||
progress!(context, 670);
|
progress!(context, 670);
|
||||||
@@ -495,7 +498,7 @@ async fn try_imap_connection(
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
if was_autoconfig {
|
if was_autoconfig {
|
||||||
return Ok(());
|
bail!("autoconfig did not succeed");
|
||||||
}
|
}
|
||||||
|
|
||||||
progress!(context, 650 + variation * 30);
|
progress!(context, 650 + variation * 30);
|
||||||
|
|||||||
Reference in New Issue
Block a user