From 0ca1247a7faace5a07d9737f1c569a62a1d09782 Mon Sep 17 00:00:00 2001 From: Cnidarias Date: Sat, 17 Dec 2022 22:22:02 +0100 Subject: PixelPaint: Propagate errors when creating images or layers This fixes a dozen release_value_but_fixme_should_propage_errors --- Userland/Applications/PixelPaint/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Applications/PixelPaint/main.cpp') 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 serenity_main(Main::Arguments arguments) auto main_widget = TRY(window->try_set_main_widget()); - 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 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(); -- cgit v1.2.3