Skip to content

Commit

Permalink
Merge pull request #3700 from Unitech/report_error
Browse files Browse the repository at this point in the history
fix: #3695
  • Loading branch information
wallet77 authored Jun 7, 2018
2 parents ef965de + 052d6c5 commit 4b2cad4
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 4b2cad4

Please sign in to comment.