From 6895960a560268a70eef1ee95c91cae47bf050fa Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Thu, 27 Sep 2018 14:08:39 +0100 Subject: [PATCH] Remove unneeded logger.error The pipeline and the deployer/compiler display the error themselves --- cmd/cmd_controller.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/cmd_controller.js b/cmd/cmd_controller.js index f7d06ce5..41ff8ce7 100644 --- a/cmd/cmd_controller.js +++ b/cmd/cmd_controller.js @@ -233,12 +233,7 @@ class EmbarkController { callback(err, true); }); } - ], function (err, canExit) { - if (err) { - engine.logger.error(err.message); - engine.logger.debug(err.stack); - } - + ], function (_err, canExit) { // TODO: this should be moved out and determined somewhere else if (canExit || !engine.config.contractsConfig.afterDeploy || !engine.config.contractsConfig.afterDeploy.length) { process.exit();