diff --git a/lib/config/file.ts b/lib/config/file.ts index 7eb13744f920c050a830ad37885d659b2f0e7aec..f6b59fce0f7668822ebae1b23846c56df8c84bc9 100644 --- a/lib/config/file.ts +++ b/lib/config/file.ts @@ -15,7 +15,7 @@ export function getConfig(env: NodeJS.ProcessEnv): GlobalConfig { config = require(configFile); } catch (err) { // istanbul ignore if - if (err instanceof SyntaxError) { + if (err instanceof SyntaxError || err instanceof TypeError) { logger.fatal(`Could not parse config file \n ${err.stack}`); process.exit(1); }