Skip to content

Commit 9774b4c

Browse files
kanongildanielleadams
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 ccf9f0e commit 9774b4c

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
@@ -269,7 +269,7 @@ function pipeline(...streams) {
269269
} else {
270270
const name = reading ? `transform[${i - 1}]` : 'destination';
271271
throw new ERR_INVALID_ARG_TYPE(
272-
name, ['Stream', 'Function'], ret);
272+
name, ['Stream', 'Function'], stream);
273273
}
274274
}
275275

0 commit comments

Comments
 (0)