mirror of https://github.com/embarklabs/embark.git
minor refactor
This commit is contained in:
parent
7e1493c039
commit
130b37f6fd
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue