| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7323ffb commit 414ad11
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -573,6 +573,9 @@ program. For a comprehensive list, see the [`errno`(3) man page][]. | |||
| 573 | 573 | - `ENOTEMPTY` (Directory not empty): A directory with entries was the target | |
| 574 | 574 | of an operation that requires an empty directory — usually [`fs.unlink`][]. | |
| 575 | 575 | ||
| 576 | + - `ENOTFOUND` (DNS lookup failed): Indicates a DNS failure of either | ||
| 577 | + `EAI_NODATA` or `EAI_NONAME`. This is not a standard POSIX error. | ||
| 578 | + | ||
| 576 | 579 | - `EPERM` (Operation not permitted): An attempt was made to perform an | |
| 577 | 580 | operation that requires elevated privileges. | |
| 578 | 581 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -432,8 +432,8 @@ function dnsException(code, syscall, hostname) { | |||
| 432 | 432 | // If `code` is of type number, it is a libuv error number, else it is a | |
| 433 | 433 | // c-ares error code. | |
| 434 | 434 | if (typeof code === 'number') { | |
| 435 | - // FIXME(bnoordhuis) Remove this backwards compatibility nonsense and pass | ||
| 436 | - // the true error to the user. ENOTFOUND is not even a proper POSIX error! | ||
| 435 | + // ENOTFOUND is not a proper POSIX error, but this error has been in place | ||
| 436 | + // long enough that it's not practical to remove it. | ||
| 437 | 437 | if (code === lazyUv().UV_EAI_NODATA || code === lazyUv().UV_EAI_NONAME) { | |
| 438 | 438 | code = 'ENOTFOUND'; // Fabricated error name. | |
| 439 | 439 | } else { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments