(startup) do not exit if no dump available

This commit is contained in:
Unitech 2016-12-09 17:59:16 +01:00
parent 68bc049b5d
commit be4eb6c632

View File

@ -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');