File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ var fs = require('fs');
88var path = p = require(' path' );
99var util = require(' util' );
1010var cronJob = require(' cron' ).CronJob;
11+ var chalk = require(' chalk' );
1112
1213var Satan = require(' ../lib/Satan' );
1314var CLI = require(' ../lib/CLI' );
@@ -458,8 +459,13 @@ if (process.argv.length == 2) {
458459//
459460process.once(' satan:client:ready' , function () {
460461 CLI.getVersion(function(err, remote_version) {
461- if (! err && (pkg.version ! = remote_version))
462- console.log(' >>>> In-memory PM2 is out-of-date, do :\n>>>> $ pm2 updatePM2' );
462+ if (! err && (pkg.version ! = remote_version)) {
463+ console.log(' ' );
464+ console.log(chalk.red.bold(' >>>> In-memory PM2 is out-of-date, do:\n>>>> $ pm2 updatePM2' ));
465+ console.log(' In memory PM2 version:' , chalk.blue.bold(remote_version));
466+ console.log(' Local PM2 version:' , chalk.blue.bold(pkg.version));
467+ console.log(' ' );
468+ }
463469 commander.parse(process.argv);
464470 });
465471});
You can’t perform that action at this time.
0 commit comments