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 danielleadams committed Nov 10, 2020
1 parent ccf9f0e commit 9774b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/streams/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,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 9774b4c

Please sign in to comment.