diff --git a/src/browser/pages/error.html b/src/browser/pages/error.html index 9e6dd0b9..302b202a 100644 --- a/src/browser/pages/error.html +++ b/src/browser/pages/error.html @@ -21,9 +21,7 @@

{{ERROR_HEADER}}

-
- {{ERROR_BODY}} -
+
{{ERROR_BODY}}
diff --git a/src/node/cli.ts b/src/node/cli.ts index 22c65dbf..e9b7e3d2 100644 --- a/src/node/cli.ts +++ b/src/node/cli.ts @@ -360,6 +360,9 @@ export async function readConfigFile(configPath?: string): Promise { 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.