Open celesteking opened 10 years ago
When connection is refused and no error handlers are attached, returned object in "complete" CB is not of Error type.
.on('complete', function(data, response){ if (data instanceof Error) { // blah } else { // gets here instead of there }
The data object itself:
{ [Error: connect ECONNREFUSED] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect' }
Thanks.
When connection is refused and no error handlers are attached, returned object in "complete" CB is not of Error type.
The data object itself:
Thanks.