-
- {{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.