Skip to content

Commit

Permalink
error check for missing config
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Jun 10, 2016
1 parent 397e5fd commit b39fd1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ var util = {
return _config;

var configFile = path.resolve(util.getArgument('config') || util.dirs().gekko + 'config');

if(!fs.existsSync(configFile))
util.die('Cannot find a config file.');

_config = require(configFile);
return _config;
},
Expand Down

0 comments on commit b39fd1f

Please sign in to comment.