From df7ff3916f70c204ed8ea631893feb6453c48ddf Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 30 Oct 2016 19:28:45 -0400 Subject: [PATCH] handle error on deploy all --- lib/deploy.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/deploy.js b/lib/deploy.js index f048217c7..4b43bcd65 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -162,6 +162,11 @@ Deploy.prototype.deployAll = function(done) { self.checkAndDeployContract(contract, null, callback); }, function(err, results) { + if (err) { + self.logger.error("error deploying contracts"); + self.logger.error(err.message); + self.logger.debug(err.stack); + } self.logger.info("finished"); self.logger.trace(arguments); done();