throw exception when finding CyclingDependencyError

This commit is contained in:
Iuri Matias 2017-12-20 14:58:59 -05:00
parent 52953a1d0d
commit 7cdba7e4e3
1 changed files with 2 additions and 1 deletions

View File

@ -212,7 +212,8 @@ class ContractsManager {
this.logger.error(("Error: " + e.message).red); 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("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); 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) { let newList = contractList.sort(function (a, b) {