Skip to content

Commit 87de4eb

Browse files
maclover7Trott
authored andcommitted
errors,tools: alphabetize-errors lint rule
To make sure errors in lib/internal/errors.js (are defined via `E`) will stay in alphabetical order going forward. PR-URL: nodejs#15083 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 37d1779 commit 87de4eb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/internal/errors.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,12 @@ E('ERR_REQUIRE_ESM', 'Must use import to load ES Module: %s');
241241
E('ERR_SOCKET_ALREADY_BOUND', 'Socket is already bound');
242242
E('ERR_SOCKET_BAD_BUFFER_SIZE', 'Buffer size must be a positive integer');
243243
E('ERR_SOCKET_BAD_PORT', 'Port should be > 0 and < 65536');
244-
E('ERR_SOCKET_BAD_BUFFER_SIZE', 'Buffer size must be a positive integer');
245244
E('ERR_SOCKET_BAD_TYPE',
246245
'Bad socket type specified. Valid types are: udp4, udp6');
247246
E('ERR_SOCKET_BUFFER_SIZE',
248247
(reason) => `Could not get or set buffer size: ${reason}`);
249248
E('ERR_SOCKET_CANNOT_SEND', 'Unable to send data');
250249
E('ERR_SOCKET_DGRAM_NOT_RUNNING', 'Not running');
251-
E('ERR_SOCKET_BUFFER_SIZE',
252-
(reason) => `Could not get or set buffer size: ${reason}`);
253250
E('ERR_STDERR_CLOSE', 'process.stderr cannot be closed');
254251
E('ERR_STDOUT_CLOSE', 'process.stdout cannot be closed');
255252
E('ERR_UNKNOWN_BUILTIN_MODULE', (id) => `No such built-in module: ${id}`);

0 commit comments

Comments
 (0)