diff --git a/doc/api/errors.md b/doc/api/errors.md index dcb2c77a7bf353..218aaff50ad09c 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1555,18 +1555,6 @@ An attempt was made to operate on an already closed socket. A call was made and the UDP subsystem was not running. - -### ERR_STDERR_CLOSE - -An attempt was made to close the `process.stderr` stream. By design, Node.js -does not allow `stdout` or `stderr` streams to be closed by user code. - - -### ERR_STDOUT_CLOSE - -An attempt was made to close the `process.stdout` stream. By design, Node.js -does not allow `stdout` or `stderr` streams to be closed by user code. - ### ERR_STREAM_CANNOT_PIPE @@ -1952,6 +1940,37 @@ removed: v10.0.0 The `repl` module was unable to parse data from the REPL history file. + + +### ERR_STDERR_CLOSE + + +An attempt was made to close the `process.stderr` stream. By design, Node.js +does not allow `stdout` or `stderr` streams to be closed by user code. + + +### ERR_STDOUT_CLOSE + + +An attempt was made to close the `process.stdout` stream. By design, Node.js +does not allow `stdout` or `stderr` streams to be closed by user code. + ### ERR_STREAM_READ_NOT_IMPLEMENTED