From 3bd92630e53157cc4731eef45e855f76dd391ef2 Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Mon, 10 Jul 2017 11:12:14 -0700 Subject: [PATCH] assume that non-JavaScript config files are in JSON format (#1391) --- cli.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cli.js b/cli.js index 2df2a5bb..95239cf3 100644 --- a/cli.js +++ b/cli.js @@ -93,11 +93,9 @@ cli.loadConfig = function() { break; case '.json': case '.EXAMPLE': + default: config = fs.readFileSync(confPath, 'utf8'); break; - default: - cli.exit(1, 'Cannot use config file ' + confPath + '. Only .js and .json files ' + - 'are supported.\n' + FATAL_ERROR_MESSAGE); } env.conf = new Config(config).get(); }