summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-12-29 14:53:47 +0100
committerLinus Groh <mail@linusgroh.de>2023-03-13 12:12:17 +0000
commit8f4d0d379706fa594b90d69edd8619cd1728c078 (patch)
tree8764bee590ebf341a714d11e33c3fd4b9b98e27c /Userland/Applications
parentdc318d30800e5b1741d5a1fdd3569321c1ad3603 (diff)
downloadserenity-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.cpp4
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());