Skip to content

Commit

Permalink
Never manually emit errors on streams
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Nov 9, 2020
1 parent f8bcaa7 commit 5e6e972
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -50,7 +50,7 @@ export function concatStreamProviders(

source
// proxy errors from the source to the destination
.once('error', (error) => destination.emit('error', error))
.once('error', (error) => destination.destroy(error))
// pipe the source to the destination but only proxy the
// end event if this is the last source
.pipe(destination, { end: isLast });
Expand Down

0 comments on commit 5e6e972

Please sign in to comment.