From b00f6bf078466f5815e0088c1aa2140eb88491c6 Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 26 Feb 2020 14:57:07 -0600 Subject: [PATCH] Improve error display when VS Code fails to load Was looking a bit janky with the style changes. --- src/node/app/vscode.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/node/app/vscode.ts b/src/node/app/vscode.ts index e47aca4a3..56578b33c 100644 --- a/src/node/app/vscode.ts +++ b/src/node/app/vscode.ts @@ -124,10 +124,12 @@ export class VscodeHttpProvider extends HttpProvider { try { return await this.getRoot(request, route) } catch (error) { - const message = `${ - this.isDev ? "It might not have finished compiling (check for 'Finished compilation' in the output)." : "" + const message = `
VS Code failed to load.
${ + this.isDev + ? "
It might not have finished compiling.
Check for 'Finished compilation' in the output." + : "" }

${error}` - return this.getErrorRoot(route, "VS Code failed to load", "VS Code failed to load", message) + return this.getErrorRoot(route, "VS Code failed to load", "500", message) } }