diff --git a/lib/API/Deploy.js b/lib/API/Deploy.js index 7cc7845ac..7dcc0c84e 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');