Skip to content

Commit

Permalink
feat: exit when fail to parse the config file
Browse files Browse the repository at this point in the history
Fixes #651
  • Loading branch information
mattlyons0 committed Oct 25, 2015
1 parent f62c0d5 commit d4e662b
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 @@ -179,11 +179,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 d4e662b

Please sign in to comment.