From c102b86725c4663101c4df91ddafbc786d502d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Fri, 10 Mar 2017 23:09:32 -0800 Subject: [PATCH] fix(request): report cache write errors on end --- lib/registry/request.js | 1 + 1 file changed, 1 insertion(+) 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)