mirror of https://github.com/coder/code-server.git
Improve error display when VS Code fails to load
Was looking a bit janky with the style changes.
This commit is contained in:
parent
a2639ac617
commit
b00f6bf078
|
@ -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 = `<div>VS Code failed to load.</div> ${
|
||||
this.isDev
|
||||
? "<div>It might not have finished compiling.</div>Check for 'Finished compilation' in the output."
|
||||
: ""
|
||||
} <br><br>${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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue