Skip to content

Commit

Permalink
stream: fix thrown object reference
Browse files Browse the repository at this point in the history
PR-URL: #36065
Reviewed-By: Robert Nagy <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
  • Loading branch information
kanongil authored and BethGriggs committed Dec 10, 2020
1 parent f808543 commit d1f3e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/streams/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function pipeline(...streams) {
} else {
const name = reading ? `transform[${i - 1}]` : 'destination';
throw new ERR_INVALID_ARG_TYPE(
name, ['Stream', 'Function'], ret);
name, ['Stream', 'Function'], stream);
}
}

Expand Down

0 comments on commit d1f3e27

Please sign in to comment.