From d4e662b808b1e33dc9b12c36de5554595deab810 Mon Sep 17 00:00:00 2001 From: Matt Lyons Date: Sun, 25 Oct 2015 00:15:15 -0700 Subject: [PATCH] feat: exit when fail to parse the config file Fixes #651 --- lib/config/load.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/config/load.js b/lib/config/load.js index 25a1b7f7..13b7aeba 100644 --- a/lib/config/load.js +++ b/lib/config/load.js @@ -179,6 +179,7 @@ function loadFile(options, config, dir, ready) { } catch (e) { console.error(e); utils.log.fail('Failed to parse config ' + filename); + process.exit(1); } // options values will overwrite settings @@ -186,4 +187,4 @@ function loadFile(options, config, dir, ready) { }); -} \ No newline at end of file +}