tableflip / guvnor

A node process manager that isn't spanners all the way down
MIT License
428 stars 37 forks source link

There is an error in document #93

Open mike442144 opened 8 years ago

mike442144 commented 8 years ago

As the title says, in document of programmatic local part, there are code as below:

daemon.on('process:ready', function(error, readyProcessInfo) {
    if(processInfo.id == readyProcessInfo.id) {
      // process has now started
    }
  })

It seems the callback has no error argument, because while I try to print out the error if it isn't undefined, I got

WildEmitter {
  socket: '/var/run/guvnor/processes/3630',
  status: 'running',
  restarts: 0,
  totalRestarts: 0,
  id: 'V1dbU1Oie',
  script: '/home/bda/Projects/testfloodesh/lib/worker.js',
  name: 'testfloodesh',
  restartOnError: true,
  restartRetries: 5,
  argv: [],
  execArgv: [],
  env: 'development',
  debug: false,
  instances: 1,
  cluster: false,
  debugPort: 46759,
  cwd: '/home/bda/Projects/testfloodesh/lib',
  user: 'bda',
  group: 'bda',
  addWorker: undefined,
  removeWorker: undefined,
  kill: [Function: bound ],
  restart: [Function: bound ],
  send: [Function: bound ],
  signal: [Function: bound ],
  reportStatus: [Function: bound ],
  dumpHeap: [Function: bound ],
  forceGc: [Function: bound ],
  write: [Function: bound ],
  fetchHeapSnapshot: [Function: bound ],
  removeHeapSnapshot: [Function: bound ],
  pid: 3630 }

Am I right?