mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
(startup) do not exit if no dump available
This commit is contained in:
parent
68bc049b5d
commit
be4eb6c632
@ -329,8 +329,9 @@ module.exports = function(CLI) {
|
||||
apps = fs.readFileSync(cst.DUMP_FILE_PATH);
|
||||
} catch(e) {
|
||||
Common.printError(cst.PREFIX_MSG_ERR + 'No processes saved; DUMP file doesn\'t exist');
|
||||
if (cb) return cb(Common.retErr(e));
|
||||
else return that.exitCli(cst.ERROR_EXIT);
|
||||
// if (cb) return cb(Common.retErr(e));
|
||||
// else return that.exitCli(cst.ERROR_EXIT);
|
||||
return that.speedList();
|
||||
}
|
||||
|
||||
var processes = Common.parseConfig(apps, 'none');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user