diff --git a/lib/modules/deployment/index.js b/lib/modules/deployment/index.js index a993c2ad2..7f8e9c608 100644 --- a/lib/modules/deployment/index.js +++ b/lib/modules/deployment/index.js @@ -81,25 +81,20 @@ class DeployManager { contractDeploys[className].push(deploy); }); - try { - async.auto(contractDeploys, 1, function(_err, _results) { - if (errors.length) { - _err = __("Error deploying contracts. Please fix errors to continue."); - self.logger.error(_err); - self.events.emit("outputError", __("Error deploying contracts, please check console")); - return done(_err); - } - if (contracts.length === 0) { - self.logger.info(__("no contracts found")); - return done(); - } - self.logger.info(__("finished deploying contracts")); - done(err); - }); - } catch (e) { - self.logger.error(e.message || e); - done(__('Error deploying')); - } + async.auto(contractDeploys, 1, function(_err, _results) { + if (errors.length) { + _err = __("Error deploying contracts. Please fix errors to continue."); + self.logger.error(_err); + self.events.emit("outputError", __("Error deploying contracts, please check console")); + return done(_err); + } + if (contracts.length === 0) { + self.logger.info(__("no contracts found")); + return done(); + } + self.logger.info(__("finished deploying contracts")); + done(err); + }); } ]); });