diff options
author | Cnidarias <roessner.pascal@gmail.com> | 2022-12-17 22:22:02 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-20 10:42:11 +0100 |
commit | 0ca1247a7faace5a07d9737f1c569a62a1d09782 (patch) | |
tree | 1fd7a67a11c1e2fbec8f82a7b5a2e5769741bba5 /Userland/Applications/PixelPaint/main.cpp | |
parent | 25f2e4981c1236f69776c290fba7472ec7714869 (diff) | |
download | serenity-0ca1247a7faace5a07d9737f1c569a62a1d09782.zip |
PixelPaint: Propagate errors when creating images or layers
This fixes a dozen release_value_but_fixme_should_propage_errors
Diffstat (limited to 'Userland/Applications/PixelPaint/main.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/main.cpp b/Userland/Applications/PixelPaint/main.cpp index 3dbbf54df8..e25f17de89 100644 --- a/Userland/Applications/PixelPaint/main.cpp +++ b/Userland/Applications/PixelPaint/main.cpp @@ -50,7 +50,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto main_widget = TRY(window->try_set_main_widget<PixelPaint::MainWidget>()); - main_widget->initialize_menubar(*window); + TRY(main_widget->initialize_menubar(*window)); window->on_close_request = [&]() -> GUI::Window::CloseRequestDecision { if (main_widget->request_close()) @@ -79,7 +79,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) return 1; main_widget->open_image(response.value()); } else { - main_widget->create_default_image(); + TRY(main_widget->create_default_image()); } return app->exec(); |