mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
errors, repl: migrate to use internal/errors.js
* Use existing errors where suitable * Assign code to a REPL specific error * Include documentation for the new error code PR-URL: https://github.com/nodejs/node/pull/11347 Ref: https://github.com/nodejs/node/issues/11273 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
1 parent
37fdfce93e
commit
aff8d358fa
3 files changed
+12
-2
No files matched your search
@@ -134,6 +134,8 @@ E('ERR_INVALID_OPT_VALUE',
|
||||
(name, value) => {
|
||||
return `The value "${String(value)}" is invalid for option "${name}"`;
|
||||
});
|
||||
E('ERR_INVALID_REPL_EVAL_CONFIG',
|
||||
'Cannot specify both "breakEvalOnSigint" and "eval" for REPL');
|
||||
E('ERR_INVALID_SYNC_FORK_INPUT',
|
||||
(value) => {
|
||||
return 'Asynchronous forks do not support Buffer, Uint8Array or string' +
|
||||
|
||||
Reference in new issue
Block a user