From e8a5a084ce09ad8ed511ac9ae4df8b970e8fa0d4 Mon Sep 17 00:00:00 2001 From: Seth Bertalotto Date: Wed, 11 Apr 2018 11:25:03 -0700 Subject: [PATCH] fix(tarball): Remove promise handler error Fixes #145 --- lib/fetchers/registry/tarball.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fetchers/registry/tarball.js b/lib/fetchers/registry/tarball.js index 89158d3..7239981 100644 --- a/lib/fetchers/registry/tarball.js +++ b/lib/fetchers/registry/tarball.js @@ -41,6 +41,7 @@ function tarball (spec, opts) { ) fetchStream.on('error', err => stream.emit('error', err)) fetchStream.pipe(stream) + return null }).catch(err => stream.emit('error', err)) return stream } @@ -72,6 +73,7 @@ function fromManifest (manifest, spec, opts) { } res.body.on('error', err => stream.emit('error', err)) res.body.pipe(stream) + return null }) .catch(err => stream.emit('error', err)) return stream