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

fix(tarball): Remove promise handler error #148

Merged
merged 1 commit into from
Apr 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/fetchers/registry/tarball.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down