minor refactor

This commit is contained in:
Iuri Matias 2017-12-16 11:48:20 -05:00
parent 7e1493c039
commit 130b37f6fd
1 changed files with 1 additions and 2 deletions

View File

@ -25,8 +25,7 @@ Config.prototype.loadConfigFiles = function(options) {
interceptLogs = true; interceptLogs = true;
} }
var embarkConfigExists = fs.existsSync(options.embarkConfig); if(!fs.existsSync(options.embarkConfig)){
if(!embarkConfigExists){
this.logger.error('Cannot find file ' + options.embarkConfig + '. Please ensure you are running this command inside the Dapp folder'); this.logger.error('Cannot find file ' + options.embarkConfig + '. Please ensure you are running this command inside the Dapp folder');
process.exit(1); process.exit(1);
} }