Skip to content
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

net: fix error details in connect() #514

Closed
wants to merge 1 commit into from
Closed

net: fix error details in connect() #514

wants to merge 1 commit into from

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Jan 19, 2015

3ac4941 introduced a slight bug in the improved error messages. Closes #510

3ac4941 introduced a
slight bug in the improved error messages.
@@ -788,7 +789,7 @@ function connect(self, address, port, addressType, localAddress, localPort) {
err = bind(localAddress, localPort);

if (err) {
var ex = exceptionWithHostPort(err, 'bind', localAddress, localPort);
ex = exceptionWithHostPort(err, 'bind', localAddress, localPort);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declaring the var upfront is not really necessary (it gets hoisted anyway) and it makes the diff more noisy than it really needs to be.

@bnoordhuis
Copy link
Member

LGTM but the commit log would be better if it explained what the bug was. Can you add a Fixes: https://github.com/iojs/io.js/issues/510 at the bottom?

@cjihrig
Copy link
Contributor Author

cjihrig commented Jan 19, 2015

Sure thing. I assumed that would be added in with the other commit metadata.

cjihrig added a commit that referenced this pull request Jan 19, 2015
3ac4941 introduced a
bug as it attempted to access properties of an
undefined variable. This commit cleans up the offending
code.

Fixes: #510
PR-URL: #514
Reviewed-By: Ben Noordhuis <[email protected]>
@cjihrig
Copy link
Contributor Author

cjihrig commented Jan 19, 2015

Thanks Ben. Addressed your comments and landed in e2558f0.

@cjihrig cjihrig closed this Jan 19, 2015
@cjihrig cjihrig deleted the 510 branch January 19, 2015 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants