1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20: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:
Valtteri Koskivuori 2023-07-26 22:40:05 +03:00 committed by Andrew Kaster
parent fc54bd03f9
commit 6128e859ac
6 changed files with 90 additions and 89 deletions

View file

@ -19,7 +19,7 @@ class MailWidget final : public GUI::Widget {
public:
virtual ~MailWidget() override = default;
bool connect_and_login();
ErrorOr<bool> connect_and_login();
void on_window_close();