Skip to content

Commit 49b04e8

Browse files
committed
feat: improve error messages on adding relays
1 parent d87d87f commit 49b04e8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/configure.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,19 @@ impl Context {
269269
.await?
270270
{
271271
if self.get_config(Config::MvboxMove).await?.as_deref() != Some("0") {
272-
bail!("Cannot use multi-transport with mvbox_move enabled.");
272+
bail!(
273+
"To use additional relays, disable the legacy option \"Settings / Advanced / Move automatically to DeltaChat Folder\"."
274+
);
273275
}
274276
if self.get_config(Config::OnlyFetchMvbox).await?.as_deref() != Some("0") {
275-
bail!("Cannot use multi-transport with only_fetch_mvbox enabled.");
277+
bail!(
278+
"To use additional relays, disable the legacy option \"Settings / Advanced / Only Fetch from DeltaChat Folder\"."
279+
);
276280
}
277281
if self.get_config(Config::ShowEmails).await?.as_deref() != Some("2") {
278-
bail!("Cannot use multi-transport with disabled fetching of classic emails.");
282+
bail!(
283+
"To use additional relays, set the legacy option \"Settings / Advanced / Show Classic Emails\" to \"All\"."
284+
);
279285
}
280286
}
281287

0 commit comments

Comments
 (0)