From 9171b81024641c3e104f3eeb2e2c6eb852dbe7f4 Mon Sep 17 00:00:00 2001 From: Unitech Date: Tue, 17 Jul 2018 12:38:13 +0200 Subject: [PATCH] fix: display error message from pm2-deploy --- lib/API/Deploy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/API/Deploy.js b/lib/API/Deploy.js index 7cc7845a..7dcc0c84 100644 --- a/lib/API/Deploy.js +++ b/lib/API/Deploy.js @@ -105,6 +105,7 @@ module.exports = function(CLI) { require('pm2-deploy').deployForEnv(json_conf.deploy, env, args, function(err, data) { if (err) { Common.printError('Deploy failed'); + Common.printError(err.message || err); return cb ? cb(err) : that.exitCli(cst.ERROR_EXIT); } Common.printOut('--> Success');