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 {
|
try {
|
||||||
return await this.getRoot(request, route)
|
return await this.getRoot(request, route)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const message = `${
|
const message = `<div>VS Code failed to load.</div> ${
|
||||||
this.isDev ? "It might not have finished compiling (check for 'Finished compilation' in the output)." : ""
|
this.isDev
|
||||||
|
? "<div>It might not have finished compiling.</div>Check for 'Finished compilation' in the output."
|
||||||
|
: ""
|
||||||
} <br><br>${error}`
|
} <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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user