aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-03-17 12:43:50 -0400
committercjihrig <cjihrig@gmail.com>2018-03-19 14:49:34 -0400
commit7c73cd4c70513dd4fa1f7ea13e3bb3270696eabe (patch)
tree4f8cd1c56d3370139a4e08c6810bade79edb22b5 /doc
parent0fb017d684448308bb78d43f2c32e0b15d1c8241 (diff)
downloadandroid-node-v8-7c73cd4c70513dd4fa1f7ea13e3bb3270696eabe.tar.gz
android-node-v8-7c73cd4c70513dd4fa1f7ea13e3bb3270696eabe.tar.bz2
android-node-v8-7c73cd4c70513dd4fa1f7ea13e3bb3270696eabe.zip
net: emit error on invalid address family
This commit adds proper error handling to net.connect() when a custom lookup() function returns an invalid address family. PR-URL: https://github.com/nodejs/node/pull/19415 Fixes: https://github.com/nodejs/node/issues/19407 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/errors.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index 5c38dde413..5e94535a3e 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -1042,6 +1042,11 @@ The `inspector` module is not available for use.
While using the `inspector` module, an attempt was made to use the inspector
before it was connected.
+<a id="ERR_INVALID_ADDRESS_FAMILY"></a>
+### ERR_INVALID_ADDRESS_FAMILY
+
+The provided address family is not understood by the Node.js API.
+
<a id="ERR_INVALID_ARG_TYPE"></a>
### ERR_INVALID_ARG_TYPE