소스 검색

WebContent: Add missing TRY on client initialization

Hendiadyoin1 3 년 전
부모
커밋
67a1a9db1d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Services/WebContent/main.cpp

+ 1 - 1
Userland/Services/WebContent/main.cpp

@@ -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();
 }