mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
fix: display error message from pm2-deploy
This commit is contained in:
parent
0495bd8e4f
commit
9171b81024
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user