diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-12-29 14:53:47 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-13 12:12:17 +0000 |
commit | 8f4d0d379706fa594b90d69edd8619cd1728c078 (patch) | |
tree | 8764bee590ebf341a714d11e33c3fd4b9b98e27c /Userland/Applications | |
parent | dc318d30800e5b1741d5a1fdd3569321c1ad3603 (diff) | |
download | serenity-8f4d0d379706fa594b90d69edd8619cd1728c078.zip |
LibCore+Userland: Make Promise's on_resolve fallible
This will be primarily necessary for BackgroundAction integration, but
it already allows us to add proper error handling in LibIMAP :^)
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/Browser/CookieJar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Browser/CookieJar.cpp b/Userland/Applications/Browser/CookieJar.cpp index cb07e08566..1ad59b6453 100644 --- a/Userland/Applications/Browser/CookieJar.cpp +++ b/Userland/Applications/Browser/CookieJar.cpp @@ -571,10 +571,10 @@ void CookieJar::select_all_cookies_from_database(OnSelectAllCookiesResult on_res on_result(cookie.release_value()); }, [&]() { - promise->resolve({}); + MUST(promise->resolve({})); }, [&](auto) { - promise->resolve({}); + MUST(promise->resolve({})); }); MUST(promise->await()); |