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