mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:37:44 +00:00
Userland: Propagate errors with TRY()
where possible
This commit is contained in:
parent
3ffa2a39bc
commit
2331d2bafa
6 changed files with 20 additions and 20 deletions
|
@ -30,7 +30,7 @@
|
|||
namespace TerminalSettings {
|
||||
ErrorOr<NonnullRefPtr<MainWidget>> MainWidget::create()
|
||||
{
|
||||
auto widget = MainWidget::try_create().release_value_but_fixme_should_propagate_errors();
|
||||
auto widget = TRY(MainWidget::try_create());
|
||||
TRY(widget->setup());
|
||||
return widget;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue