Skip to content

Commit 331d636

Browse files
committed
errors: remove unused ERR_SOCKET_CANNOT_SEND error
This error is no longer used within core. This commit removes it. PR-URL: #31958 Refs: nodejs/help#2484 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 1b2e294 commit 331d636

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

doc/api/errors.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,11 +1727,6 @@ value.
17271727
While using [`dgram.createSocket()`][], the size of the receive or send `Buffer`
17281728
could not be determined.
17291729

1730-
<a id="ERR_SOCKET_CANNOT_SEND"></a>
1731-
### `ERR_SOCKET_CANNOT_SEND`
1732-
1733-
Data could be sent on a socket.
1734-
17351730
<a id="ERR_SOCKET_CLOSED"></a>
17361731
### `ERR_SOCKET_CLOSED`
17371732

@@ -2293,6 +2288,15 @@ removed: v10.0.0
22932288

22942289
The `repl` module was unable to parse data from the REPL history file.
22952290

2291+
<a id="ERR_SOCKET_CANNOT_SEND"></a>
2292+
### `ERR_SOCKET_CANNOT_SEND`
2293+
<!-- YAML
2294+
added: v9.0.0
2295+
removed: REPLACEME
2296+
-->
2297+
2298+
Data could be sent on a socket.
2299+
22962300
<a id="ERR_STDERR_CLOSE"></a>
22972301
### `ERR_STDERR_CLOSE`
22982302
<!-- YAML

lib/internal/errors.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,6 @@ E('ERR_SOCKET_BAD_TYPE',
12881288
E('ERR_SOCKET_BUFFER_SIZE',
12891289
'Could not get or set buffer size',
12901290
SystemError);
1291-
E('ERR_SOCKET_CANNOT_SEND', 'Unable to send data', Error);
12921291
E('ERR_SOCKET_CLOSED', 'Socket is closed', Error);
12931292
E('ERR_SOCKET_DGRAM_IS_CONNECTED', 'Already connected', Error);
12941293
E('ERR_SOCKET_DGRAM_NOT_CONNECTED', 'Not connected', Error);

0 commit comments

Comments
 (0)