From 1d23bc0705d4b6e1064e75a17961aebe431b0148 Mon Sep 17 00:00:00 2001 From: Gil Pedersen Date: Tue, 10 Nov 2020 14:12:16 +0100 Subject: [PATCH] stream: fix thrown object reference --- lib/internal/streams/pipeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/streams/pipeline.js b/lib/internal/streams/pipeline.js index 5bd655aa1e7a9e..b23f05ca1f206a 100644 --- a/lib/internal/streams/pipeline.js +++ b/lib/internal/streams/pipeline.js @@ -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); } }