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

Commit

Permalink
fix(get): make sure to handle errors in the .then
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Dec 21, 2018
1 parent 4c94e2c commit b10bcd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get.js
Expand Up @@ -162,7 +162,7 @@ function getStream (cache, key, opts) {
memoStream,
stream
)
}, err => stream.emit('error', err))
}).catch(err => stream.emit('error', err))
return stream
}

Expand Down

0 comments on commit b10bcd0

Please sign in to comment.