We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 586305c + f39d9d1 commit 8bc3024Copy full SHA for 8bc3024
index.js
@@ -117,7 +117,7 @@ Client.prototype._request = function (opts) {
117
})
118
119
req.on('error', function (err) {
120
- self.emit('error', req)
+ self.emit('error', err)
121
122
123
}
@@ -137,7 +137,7 @@ Client.prototype._handleResponse = function (data, announce) {
137
138
var warning = data['warning message']
139
if (warning) {
140
- console.warn(warning)
+ self.emit('warning', warning);
141
142
143
var interval = data.interval || data['min interval']
0 commit comments