Skip to content

Commit 142ce5c

Browse files
committed
errors: order internal errors list alphabetically
To make backporting easier. PR-URL: #14453 Reviewed-By: James M Snell <[email protected]>
1 parent f2efdc8 commit 142ce5c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/internal/errors.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,6 @@ E('ERR_IPC_DISCONNECTED', 'IPC channel is already disconnected');
137137
E('ERR_IPC_ONE_PIPE', 'Child process can have only one IPC pipe');
138138
E('ERR_IPC_SYNC_FORK', 'IPC cannot be used with synchronous forks');
139139
E('ERR_MISSING_ARGS', missingArgs);
140-
E('ERR_STDERR_CLOSE', 'process.stderr cannot be closed');
141-
E('ERR_STDOUT_CLOSE', 'process.stdout cannot be closed');
142-
E('ERR_UNKNOWN_BUILTIN_MODULE', (id) => `No such built-in module: ${id}`);
143-
E('ERR_UNKNOWN_SIGNAL', (signal) => `Unknown signal: ${signal}`);
144-
E('ERR_UNKNOWN_STDIN_TYPE', 'Unknown stdin file type');
145-
E('ERR_UNKNOWN_STREAM_TYPE', 'Unknown stream file type');
146140
E('ERR_NAPI_CONS_FUNCTION', 'Constructor must be a function');
147141
E('ERR_NAPI_CONS_PROTOTYPE_OBJECT', 'Constructor.prototype must be an object');
148142
E('ERR_NO_CRYPTO', 'Node.js is not compiled with OpenSSL crypto support');
@@ -153,6 +147,12 @@ E('ERR_SOCKET_BAD_TYPE',
153147
E('ERR_SOCKET_CANNOT_SEND', 'Unable to send data');
154148
E('ERR_SOCKET_BAD_PORT', 'Port should be > 0 and < 65536');
155149
E('ERR_SOCKET_DGRAM_NOT_RUNNING', 'Not running');
150+
E('ERR_STDERR_CLOSE', 'process.stderr cannot be closed');
151+
E('ERR_STDOUT_CLOSE', 'process.stdout cannot be closed');
152+
E('ERR_UNKNOWN_BUILTIN_MODULE', (id) => `No such built-in module: ${id}`);
153+
E('ERR_UNKNOWN_SIGNAL', (signal) => `Unknown signal: ${signal}`);
154+
E('ERR_UNKNOWN_STDIN_TYPE', 'Unknown stdin file type');
155+
E('ERR_UNKNOWN_STREAM_TYPE', 'Unknown stream file type');
156156
// Add new errors from here...
157157

158158
function invalidArgType(name, expected, actual) {

0 commit comments

Comments
 (0)