Skip to content

Commit 7c99885

Browse files
kanongilBethGriggs
authored andcommitted
stream: fix thrown object reference
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]>
1 parent 6daf204 commit 7c99885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/streams/pipeline.js

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

0 commit comments

Comments
 (0)