WebContent: Add missing TRY on client initialization

This commit is contained in:
Hendiadyoin1 2021-12-07 00:41:28 +01:00 committed by Andreas Kling
parent 39ecb832e4
commit 67a1a9db1d
Notes: sideshowbarker 2024-07-17 23:06:15 +09:00

View file

@ -21,6 +21,6 @@ ErrorOr<int> serenity_main(Main::Arguments)
TRY(Core::System::unveil("/tmp/portal/websocket", "rw"));
TRY(Core::System::unveil(nullptr, nullptr));
auto client = IPC::take_over_accepted_client_from_system_server<WebContent::ClientConnection>();
auto client = TRY(IPC::take_over_accepted_client_from_system_server<WebContent::ClientConnection>());
return event_loop.exec();
}