fix: display error message from pm2-deploy

This commit is contained in:
Unitech 2018-07-17 12:38:13 +02:00
parent 0495bd8e4f
commit 9171b81024

View File

@ -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');