From c8f63b61c424abc742c4354a76bcf07fcdfbbe6e Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 26 Aug 2020 14:21:37 -0400 Subject: [PATCH] Fix fmt and lint --- src/browser/pages/error.html | 4 +--- src/node/cli.ts | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) 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.