From 7cdba7e4e3e428f56b0571f749dd2d3ae70024d4 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 20 Dec 2017 14:58:59 -0500 Subject: [PATCH] throw exception when finding CyclingDependencyError --- lib/contracts/contracts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {