diff --git a/lib/registry/request.js b/lib/registry/request.js index a9395d1..d543b14 100644 --- a/lib/registry/request.js +++ b/lib/registry/request.js @@ -187,6 +187,7 @@ function registryStream (key, uri, registry, meta, opts) { stream.write(chunk, enc, cb) }, function (cb) { opts.log.silly('registry.get', 'request for', key, 'done.') + cacheStream.on('error', cb) cacheStream.end(function () { opts.log.silly('registry.get', 'wrapped up cacheStream') stream.end(cb)