...
|
...
|
@@ -137,14 +137,13 @@ class Sender extends EventEmitter { |
|
|
console.error(`Send failed! statusCode:${res.statusCode}`);
|
|
|
this.emit('failed', res.statusCode);
|
|
|
} else {
|
|
|
console.log('status code:' + res.statusCode);
|
|
|
this.emit('ok', res.statusCode);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
req.on('error', (e) => {
|
|
|
debug('send error: %O', e);
|
|
|
this.emit('error', e);
|
|
|
this.emit('sendError', e);
|
|
|
console.error(e);
|
|
|
});
|
|
|
|
...
|
...
|
|