Skip to content

Commit 90ff61d

Browse files
kanongilBethGriggs
authored andcommitted
stream: fix thrown object reference
PR-URL: #36065 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent 78ef866 commit 90ff61d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/streams/pipeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ function pipeline(...streams) {
266266
} else {
267267
const name = reading ? `transform[${i - 1}]` : 'destination';
268268
throw new ERR_INVALID_ARG_TYPE(
269-
name, ['Stream', 'Function'], ret);
269+
name, ['Stream', 'Function'], stream);
270270
}
271271
}
272272

0 commit comments

Comments
 (0)