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 danielleadams committed Nov 10, 2020
1 parent ccf9f0e commit 9774b4c
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 @@ -269,7 +269,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 9774b4c

Please sign in to comment.