From be4eb6c63253be6af544104f5de19e6c72e9030d Mon Sep 17 00:00:00 2001 From: Unitech Date: Fri, 9 Dec 2016 17:59:16 +0100 Subject: [PATCH] (startup) do not exit if no dump available --- lib/API/Startup.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/API/Startup.js b/lib/API/Startup.js index 8bc2d968..44ac7431 100644 --- a/lib/API/Startup.js +++ b/lib/API/Startup.js @@ -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');