Uh oh!
There was an error while loading. Please reload this page.
net: add localAddress/Port for better error msgs - #3946
Conversation
jasnell
commented
Nov 20, 2015
how odd that this wasn't caught before. LGTM but it would be helpful to have a quick test case included that fails before this is fix but works after. |
evanlucas
commented
Nov 20, 2015
Yea, apologies on that...not sure how that was missed :/ LGTM |
jscissr
commented
Nov 21, 2015
I'll try making a test |
jasnell
commented
Nov 21, 2015
It's not critical, just helpful. :) thank you!
|
jscissr
commented
Nov 21, 2015
Hmm, it looks like At least it means the worst that can happen is that you don't get a nice error message in the onerror event. |
The code generating the errror messages was already there, but it could never execute because these properties were not set.
There was a problem hiding this comment.
I'm not sure which port to use here, it simply should produce an ECONNREFUSED error when connecting.
As suggested by @evanlucas
There was a problem hiding this comment.
mind making these const instead of var?
There was a problem hiding this comment.
I copied that from another test. Should I make a PR that changes this for every test where it isn't already the new way?
There was a problem hiding this comment.
I believe the plan is to update them as we go. But in general, all new tests should use const wherever possible
cjihrig
commented
Nov 23, 2015
LGTM pending comments and CI |
As suggested by @evanlucas and @cjihrig
evanlucas
commented
Nov 23, 2015
CI: https://ci.nodejs.org/job/node-test-pull-request/816/ LGTM if CI is happy |
jscissr
commented
Nov 24, 2015
It looks like something was wrong with the CI server. Can you restart it @evanlucas? |
evanlucas
commented
Nov 24, 2015
Adds localAddress and localPort to req so we have better error messages. Also fixes a case where ex is used before it is declared. PR-URL: #3946 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
evanlucas
commented
Nov 24, 2015
Landed in d7b199d. I went ahead and squashed the commits into 1 also. Thanks! |
Adds localAddress and localPort to req so we have better error messages. Also fixes a case where ex is used before it is declared. PR-URL: #3946 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Adds localAddress and localPort to req so we have better error messages. Also fixes a case where ex is used before it is declared. PR-URL: #3946 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Adds localAddress and localPort to req so we have better error messages. Also fixes a case where ex is used before it is declared. PR-URL: #3946 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Adds localAddress and localPort to req so we have better error messages. Also fixes a case where ex is used before it is declared. PR-URL: #3946 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Adds localAddress and localPort to req so we have better error messages. Also fixes a case where ex is used before it is declared. PR-URL: #3946 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
That could result in an error being thrown while creating an error...