From dc53c29b97e866c72391cad45905afbb5a5643f1 Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Sat, 18 Jun 2022 20:54:31 +0800 Subject: dns: export error code constants from `dns/promises` PR-URL: https://github.com/nodejs/node/pull/43176 Reviewed-By: Matteo Collina Reviewed-By: Minwoo Jung Reviewed-By: James M Snell --- doc/api/dns.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/api/dns.md') diff --git a/doc/api/dns.md b/doc/api/dns.md index 297cda2efcd..dc2f578fa05 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -1405,6 +1405,8 @@ Each DNS query can return one of the following error codes: * `dns.ADDRGETNETWORKPARAMS`: Could not find `GetNetworkParams` function. * `dns.CANCELLED`: DNS query cancelled. +The above error codes are also exported by the `dnsPromises` API, e.g., `dnsPromises.NODATA`. + ## Implementation considerations Although [`dns.lookup()`][] and the various `dns.resolve*()/dns.reverse()` -- cgit v1.2.3