Skip to content

Commit

Permalink
Merge pull request Unitech#3700 from Unitech/report_error
Browse files Browse the repository at this point in the history
  • Loading branch information
wallet77 authored Jun 7, 2018
2 parents e26701a + 32174cf commit fa585cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/API/Extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module.exports = function(CLI) {
}

that.Client.executeRemote('getVersion', {}, function(err, data) {
if (semver.satisfies(data, '>= 2.6.0'))
if (semver.satisfies(semver.coerce(data), '>=2.6.0'))
reporting();
else {
Common.printError(cst.PREFIX_MSG_ERR + 'You need to update your Daemon, please type `$ pm2 update`');
Expand Down

0 comments on commit fa585cb

Please sign in to comment.