From e442ea98fbe9481df9581b39f275930fc88540f8 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 17 Feb 2013 01:16:09 -0500 Subject: [PATCH] add no process error handling to cli.restartAll --- lib/forever/cli.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/forever/cli.js b/lib/forever/cli.js index 057a528e..2281623f 100644 --- a/lib/forever/cli.js +++ b/lib/forever/cli.js @@ -273,8 +273,8 @@ app.cmd('stopall', cli.stopall = function () { }); // -// ### function stopall () -// Stops all currently running forever processes. +// ### function restartall () +// Restarts all currently running forever processes. // app.cmd('restartall', cli.restartAll = function () { var runner = forever.restartAll(true); @@ -289,6 +289,10 @@ app.cmd('restartall', cli.restartAll = function () { forever.log.info('No forever processes running'); } }); + + runner.on('error', function () { + forever.log.info('No forever processes running'); + }); }); //