Skip to content

Commit

Permalink
fix: exit when fail to parse the config file (#921)
Browse files Browse the repository at this point in the history
Fixes #651
  • Loading branch information
mattlyons0 authored and remy committed Sep 4, 2017
1 parent facc8cb commit 63e8606
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/config/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,12 @@ 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
callback(settings);
});


}
}

0 comments on commit 63e8606

Please sign in to comment.