Skip to content

Commit e44bd3a

Browse files
committed
handle error on contract deplyoment
1 parent ac67c80 commit e44bd3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/deploy.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ Deploy.prototype.checkAndDeployContract = function(contract, params, callback) {
7979
}
8080

8181
this.deployContract(contract, realArgs, function(err, address) {
82+
if (err) {
83+
return callback(new Error(err));
84+
}
8285
self.deployTracker.trackContract(contract.className, contract.code, realArgs, address);
8386
self.deployTracker.save();
8487
self.logger.contractsState(self.contractsManager.contractsState());

0 commit comments

Comments
 (0)