mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
net: migrate errors to internal/errors
Throw ERR_SOCKET_CLOSED and ERR_SERVER_NOT_RUNNING instead of the old-style errors in net.js. PR-URL: https://github.com/nodejs/node/pull/17766 Refs: https://github.com/nodejs/node/issues/17709 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
8599465d33
commit
b98aaa312e
6 files changed
+31
-13
No files matched your search
+8
-1
@@ -1364,7 +1364,14 @@ Script execution was interrupted by `SIGINT` (For example, when Ctrl+C was press
|
||||
|
||||
The [`server.listen()`][] method was called while a `net.Server` was already
|
||||
listening. This applies to all instances of `net.Server`, including HTTP, HTTPS,
|
||||
and HTTP/2 Server instances.
|
||||
and HTTP/2 `Server` instances.
|
||||
|
||||
<a id="ERR_SERVER_NOT_RUNNING"></a>
|
||||
### ERR_SERVER_NOT_RUNNING
|
||||
|
||||
The [`server.close()`][] method was called when a `net.Server` was not
|
||||
running. This applies to all instances of `net.Server`, including HTTP, HTTPS,
|
||||
and HTTP/2 `Server` instances.
|
||||
|
||||
<a id="ERR_SOCKET_ALREADY_BOUND"></a>
|
||||
### ERR_SOCKET_ALREADY_BOUND
|
||||
|
||||
Reference in new issue
Block a user