-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repl: migrate errors to internal/errors #17716
Closed
Closed
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f237327
repl: migrate errors to internal/errors
kysnm 4f918bb
Check the err.code instead of the err.message
kysnm 65fc1e8
Remove useless test
kysnm fed6d47
Change the contents of the error message in detail
kysnm 3dcabb7
Check the actual error message instead of the generate it
kysnm 480358b
Describe more details at the docs.
kysnm f142f84
Remove useless parenthses.
kysnm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -440,6 +440,8 @@ E('ERR_OUTOFMEMORY', 'Out of memory'); | |
E('ERR_OUT_OF_RANGE', 'The "%s" argument is out of range'); | ||
E('ERR_PARSE_HISTORY_DATA', 'Could not parse history data in %s'); | ||
E('ERR_REQUIRE_ESM', 'Must use import to load ES Module: %s'); | ||
E('ERR_SCRIPT_EXECUTION_INTERRUPTED', | ||
'Script execution was interrupted by `SIGINT` (Ctrl+C).'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We probably don't need the part in the parentheses in the error message. The details should be in the docs. |
||
E('ERR_SERVER_ALREADY_LISTEN', | ||
'Listen method has been called more than once without closing.'); | ||
E('ERR_SOCKET_ALREADY_BOUND', 'Socket is already bound'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kind of agree with @Trott that this is not exactly accurate. Maybe here we should say
(for example, when Ctrl+C was pressed)
instead