-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
doc: clarify error handling in net/createServer #5353
Conversation
LGTM. /cc @trevnorris |
It would be good if the commit log message identified what was clarified a bit more specifically. |
@jasnell good point. Can you please check the new commit message? |
server.listen(8124, (err) => { | ||
// 'listening' listener | ||
if (err) throw err; | ||
server.listen(8124, () => { |
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 would add an error
listener here as well.
Remove indications that an error argument is sent to the `listen()` callback. Fixes: nodejs#5345 PR-URL: nodejs#5353
LGTM. Thanks for looking into this. |
LGTM. |
Landed in 581606a. Thanks! |
Fixes: #5345