Skip to content

Commit b00f6bf

Browse files
committed
Improve error display when VS Code fails to load
Was looking a bit janky with the style changes.
1 parent a2639ac commit b00f6bf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/node/app/vscode.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,12 @@ export class VscodeHttpProvider extends HttpProvider {
124124
try {
125125
return await this.getRoot(request, route)
126126
} catch (error) {
127-
const message = `${
128-
this.isDev ? "It might not have finished compiling (check for 'Finished compilation' in the output)." : ""
127+
const message = `<div>VS Code failed to load.</div> ${
128+
this.isDev
129+
? "<div>It might not have finished compiling.</div>Check for 'Finished compilation' in the output."
130+
: ""
129131
} <br><br>${error}`
130-
return this.getErrorRoot(route, "VS Code failed to load", "VS Code failed to load", message)
132+
return this.getErrorRoot(route, "VS Code failed to load", "500", message)
131133
}
132134
}
133135

0 commit comments

Comments
 (0)