diff --git a/lib/contracts/contracts.js b/lib/contracts/contracts.js index 1a167be81..8c0d38a7a 100644 --- a/lib/contracts/contracts.js +++ b/lib/contracts/contracts.js @@ -212,7 +212,8 @@ class ContractsManager { this.logger.error(("Error: " + e.message).red); this.logger.error("there are two or more contracts that depend on each other in a cyclic manner".bold.red); this.logger.error("Embark couldn't determine which one to deploy first".red); - process.exit(0); + throw new Error("CyclicDependencyError"); + //process.exit(0); } let newList = contractList.sort(function (a, b) {