Skip to content

Commit

Permalink
fix: display error message from pm2-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Jul 17, 2018
1 parent 0495bd8 commit 9171b81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/API/Deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 9171b81

Please sign in to comment.