mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
fix "unimplemented" error when uplink is offline
This commit is contained in:
parent
74e89e94e9
commit
602f17c8b2
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ Storage.prototype.request = function(options, cb) {
|
||||||
if (typeof(cb) === 'function') cb(Error('uplink is offline'))
|
if (typeof(cb) === 'function') cb(Error('uplink is offline'))
|
||||||
req.emit('error', Error('uplink is offline'))
|
req.emit('error', Error('uplink is offline'))
|
||||||
})
|
})
|
||||||
|
req._read = function(){}
|
||||||
// preventing 'Uncaught, unspecified "error" event'
|
// preventing 'Uncaught, unspecified "error" event'
|
||||||
req.on('error', function(){})
|
req.on('error', function(){})
|
||||||
return req
|
return req
|
||||||
|
|
Loading…
Reference in a new issue