Skip to content

Commit c8f63b6

Browse files
committed
Fix fmt and lint
1 parent c80d093 commit c8f63b6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/browser/pages/error.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
<div class="center-container">
2222
<div class="error-display">
2323
<h2 class="header">{{ERROR_HEADER}}</h2>
24-
<div class="body">
25-
{{ERROR_BODY}}
26-
</div>
24+
<div class="body">{{ERROR_BODY}}</div>
2725
<div class="links">
2826
<a class="link" href="{{BASE}}{{TO}}">go home</a>
2927
</div>

src/node/cli.ts

+3
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ export async function readConfigFile(configPath?: string): Promise<Args> {
360360
const config = yaml.safeLoad(configFile.toString(), {
361361
filename: configPath,
362362
})
363+
if (!config || typeof config === "string") {
364+
throw new Error(`invalid config: ${config}`)
365+
}
363366

364367
// We convert the config file into a set of flags.
365368
// This is a temporary measure until we add a proper CLI library.

0 commit comments

Comments
 (0)