mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
LibIMAP+Mail: Propagate errors from LibIMAP and MailWidget
This lets us bubble up errors from `LibIMAP::Client::send_command()`, which can happen if the connection hangs or is taking a long time, and the user closes Mail.
This commit is contained in:
parent
fc54bd03f9
commit
6128e859ac
6 changed files with 90 additions and 89 deletions
|
@ -63,9 +63,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
window->show();
|
||||
|
||||
bool should_continue = mail_widget->connect_and_login();
|
||||
if (!should_continue)
|
||||
bool should_continue = TRY(mail_widget->connect_and_login());
|
||||
if (!should_continue) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return app->exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue