Skip to content

Commit 68502f1

Browse files
committed
fix missing parameter
1 parent b85f8e2 commit 68502f1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/forever.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,13 @@ function stopByPid(event, format, pid) {
255255
});
256256
}
257257

258-
getAllProcesses(function (processes) {
258+
getAllProcesses(function (err, processes) {
259+
if (err) {
260+
return process.nextTick(function () {
261+
emitter.emit('error', err);
262+
});
263+
}
264+
259265
var procs = processes;
260266

261267
// if we specified pid -> send action only to this process

0 commit comments

Comments
 (0)