Skip to content

Commit 845c66c

Browse files
committed
fixup! typo
1 parent 579d456 commit 845c66c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

doc/api/errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2621,9 +2621,9 @@ or a pipeline ends non gracefully with no explicit error.
26212621
An attempt was made to call [`stream.push()`][] after a `null`(EOF) had been
26222622
pushed to the stream.
26232623

2624-
<a id="ERR_STREAM_UNABLE_TO_PIIPE"></a>
2624+
<a id="ERR_STREAM_UNABLE_TO_PIPE"></a>
26252625

2626-
### `ERR_STREAM_UNABLE_TO_PIIPE`
2626+
### `ERR_STREAM_UNABLE_TO_PIPE`
26272627

26282628
An attempt was made to pipe to a closed or destroyed stream in a pipeline.
26292629

lib/internal/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ E('ERR_STREAM_DESTROYED', 'Cannot call %s after a stream was destroyed', Error);
17161716
E('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);
17171717
E('ERR_STREAM_PREMATURE_CLOSE', 'Premature close', Error);
17181718
E('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF', Error);
1719-
E('ERR_STREAM_UNABLE_TO_PIIPE', 'Connot pipe to a closed or destroyed stream', Error);
1719+
E('ERR_STREAM_UNABLE_TO_PIPE', 'Connot pipe to a closed or destroyed stream', Error);
17201720
E('ERR_STREAM_UNSHIFT_AFTER_END_EVENT',
17211721
'stream.unshift() after end event', Error);
17221722
E('ERR_STREAM_WRAP', 'Stream has StringDecoder set or is in objectMode', Error);

lib/internal/streams/pipeline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const {
2323
ERR_MISSING_ARGS,
2424
ERR_STREAM_DESTROYED,
2525
ERR_STREAM_PREMATURE_CLOSE,
26-
ERR_STREAM_UNABLE_TO_PIIPE,
26+
ERR_STREAM_UNABLE_TO_PIPE,
2727
},
2828
} = require('internal/errors');
2929

@@ -260,7 +260,7 @@ function pipelineImpl(streams, callback, opts) {
260260

261261
if (isNodeStream(stream)) {
262262
if (next !== null && (next?.closed || next?.destroyed)) {
263-
throw new ERR_STREAM_UNABLE_TO_PIIPE();
263+
throw new ERR_STREAM_UNABLE_TO_PIPE();
264264
}
265265

266266
if (end) {

test/parallel/test-stream-pipeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ tmpdir.refresh();
7979
const close = promisify(write.close);
8080
await close.call(write);
8181
await pipelinep(read, write);
82-
}, /ERR_STREAM_UNABLE_TO_PIIPE/).then(common.mustCall());
82+
}, /ERR_STREAM_UNABLE_TO_PIPE/).then(common.mustCall());
8383
}
8484

8585
{

0 commit comments

Comments
 (0)