print error if contract file is not found

This commit is contained in:
Iuri Matias 2018-04-12 20:30:20 -04:00
parent 7243c6ea8b
commit 5ed1e787b2
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}
};