Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
fix(request): report cache write errors on end
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Mar 11, 2017
1 parent 1ab9a33 commit c102b86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/registry/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c102b86

Please sign in to comment.