Skip to content

Commit 7c99885

Browse files
kanongilBethGriggs
authored andcommittedDec 15, 2020
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 6daf204 commit 7c99885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/internal/streams/pipeline.js

+1-1
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)
Please sign in to comment.