diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx index 4e0bb8b20..98af589dd 100644 --- a/packages/desktop/src/index.tsx +++ b/packages/desktop/src/index.tsx @@ -472,12 +472,10 @@ render(() => { } return ( - - {(defaultServer) => ( - - - - )} + + + + ) }} @@ -492,19 +490,34 @@ type ServerReadyData = { url: string; password: string | null } // Gate component that waits for the server to be ready function ServerGate(props: { children: (data: Accessor) => JSX.Element }) { const [serverData] = createResource(() => commands.awaitInitialization(new Channel() as any)) - if (serverData.state === "errored") throw serverData.error return ( - +
+ +
+

Failed to start server

+

+ {String(serverData.error ?? "Unknown error")} +

+
} > - {(data) => props.children(data)} + + +
+
+ } + > + {(data) => props.children(data)} +
) }