diff --git a/src/configure/mod.rs b/src/configure/mod.rs index 8be3d7284..0a17d3759 100644 --- a/src/configure/mod.rs +++ b/src/configure/mod.rs @@ -461,7 +461,10 @@ async fn try_imap_connections( .await .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); @@ -495,7 +498,7 @@ async fn try_imap_connection( return Ok(()); } if was_autoconfig { - return Ok(()); + bail!("autoconfig did not succeed"); } progress!(context, 650 + variation * 30);