From 5ed1e787b256a283378005850b1eb9266b48fe45 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 12 Apr 2018 20:30:20 -0400 Subject: [PATCH] print error if contract file is not found --- lib/core/config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/config.js b/lib/core/config.js index bbc09cf2c..26743320c 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -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); } } };