Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is an error in document #93

Open
mike442144 opened this issue Feb 25, 2016 · 0 comments
Open

There is an error in document #93

mike442144 opened this issue Feb 25, 2016 · 0 comments

Comments

@mike442144
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant