mirror of https://github.com/embarklabs/embark.git
handle error on contract deplyoment
This commit is contained in:
parent
ac67c80576
commit
e44bd3a22e
|
@ -79,6 +79,9 @@ Deploy.prototype.checkAndDeployContract = function(contract, params, callback) {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.deployContract(contract, realArgs, function(err, address) {
|
this.deployContract(contract, realArgs, function(err, address) {
|
||||||
|
if (err) {
|
||||||
|
return callback(new Error(err));
|
||||||
|
}
|
||||||
self.deployTracker.trackContract(contract.className, contract.code, realArgs, address);
|
self.deployTracker.trackContract(contract.className, contract.code, realArgs, address);
|
||||||
self.deployTracker.save();
|
self.deployTracker.save();
|
||||||
self.logger.contractsState(self.contractsManager.contractsState());
|
self.logger.contractsState(self.contractsManager.contractsState());
|
||||||
|
|
Loading…
Reference in New Issue