mirror of https://github.com/embarklabs/embark.git
print error if contract file is not found
This commit is contained in:
parent
7243c6ea8b
commit
5ed1e787b2
|
@ -153,6 +153,8 @@ Config.prototype.loadExternalContractsFiles = function() {
|
|||
this.contractsFiles.push(new File({filename: contract.file, type: "dapp_file", basedir: '', path: contract.file}));
|
||||
} else if (fs.existsSync(path.join('./node_modules/', contract.file))) {
|
||||
this.contractsFiles.push(new File({filename: path.join('./node_modules/', contract.file), type: "dapp_file", basedir: '', path: path.join('./node_modules/', contract.file)}));
|
||||
} else {
|
||||
this.logger.error("contract file not found: " + contract.file);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue