diff --git a/desktop/app/src/init.tsx b/desktop/app/src/init.tsx index 96c71e6a2..7dba9d674 100644 --- a/desktop/app/src/init.tsx +++ b/desktop/app/src/init.tsx @@ -231,8 +231,8 @@ async function start() { start().catch((e) => { console.error('Failed to start Flipper desktop', e); - document.getElementById('root')!.textContent = - 'Failed to start Flipper desktop: ' + e; + document.getElementById('loading')!.textContent = + 'Failed to start Flipper. ' + e; }); function getStaticPath(appPath: string) { diff --git a/desktop/flipper-server-client/src/FlipperServerClient.tsx b/desktop/flipper-server-client/src/FlipperServerClient.tsx index 9d94a5213..489fa7f70 100644 --- a/desktop/flipper-server-client/src/FlipperServerClient.tsx +++ b/desktop/flipper-server-client/src/FlipperServerClient.tsx @@ -47,7 +47,11 @@ export function createFlipperServerWithSocket( let initialConnectionTimeout: ReturnType | undefined = setTimeout(() => { reject( - new Error('Failed to connect to flipper-server in a timely manner'), + new Error( + `Failed to connect to the server in a timely manner. + It may be unresponsive. Run the following from the terminal + 'lsof -nP -iTCP -sTCP:LISTEN | grep 52342' and kill the listed process, if any.`, + ), ); }, CONNECTION_TIMEOUT); diff --git a/desktop/static/index.html b/desktop/static/index.html index b752be3c7..51b12c14d 100644 --- a/desktop/static/index.html +++ b/desktop/static/index.html @@ -1,32 +1,59 @@ - - - - - - - - Flipper - - -
- - + - - + } catch (e) { + console.error("Failed to initialize theme", e); + document.getElementById('flipper-theme-import').href = "themes/light.css"; + } + + + +