Open mike442144 opened 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
error
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?
As the title says, in document of programmatic local part, there are code as below:
It seems the callback has no
error
argument, because while I try to print out the error if it isn't undefined, I gotAm I right?