Merge pull request #7 from mafintosh/patch-1

No logs and fixed req getting emitted as error
This commit is contained in:
Feross Aboukhadijeh 2014-03-27 19:18:01 -07:00
commit 8bc3024067

View File

@ -117,7 +117,7 @@ Client.prototype._request = function (opts) {
})
req.on('error', function (err) {
self.emit('error', req)
self.emit('error', err)
})
})
}
@ -137,7 +137,7 @@ Client.prototype._handleResponse = function (data, announce) {
var warning = data['warning message']
if (warning) {
console.warn(warning)
self.emit('warning', warning);
}
var interval = data.interval || data['min interval']