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 <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>
  • Loading branch information
kanongil authored and BethGriggs committed Dec 15, 2020
1 parent 6daf204 commit 7c99885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/streams/pipeline.js
Expand Up @@ -262,7 +262,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 7c99885

Please sign in to comment.