mirror of
https://github.com/danog/code-server.git
synced 2024-11-27 04:45:52 +01:00
Fix fmt and lint
This commit is contained in:
parent
c80d093dc4
commit
c8f63b61c4
@ -21,9 +21,7 @@
|
|||||||
<div class="center-container">
|
<div class="center-container">
|
||||||
<div class="error-display">
|
<div class="error-display">
|
||||||
<h2 class="header">{{ERROR_HEADER}}</h2>
|
<h2 class="header">{{ERROR_HEADER}}</h2>
|
||||||
<div class="body">
|
<div class="body">{{ERROR_BODY}}</div>
|
||||||
{{ERROR_BODY}}
|
|
||||||
</div>
|
|
||||||
<div class="links">
|
<div class="links">
|
||||||
<a class="link" href="{{BASE}}{{TO}}">go home</a>
|
<a class="link" href="{{BASE}}{{TO}}">go home</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -360,6 +360,9 @@ export async function readConfigFile(configPath?: string): Promise<Args> {
|
|||||||
const config = yaml.safeLoad(configFile.toString(), {
|
const config = yaml.safeLoad(configFile.toString(), {
|
||||||
filename: configPath,
|
filename: configPath,
|
||||||
})
|
})
|
||||||
|
if (!config || typeof config === "string") {
|
||||||
|
throw new Error(`invalid config: ${config}`)
|
||||||
|
}
|
||||||
|
|
||||||
// We convert the config file into a set of flags.
|
// We convert the config file into a set of flags.
|
||||||
// This is a temporary measure until we add a proper CLI library.
|
// This is a temporary measure until we add a proper CLI library.
|
||||||
|
Loading…
Reference in New Issue
Block a user