Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What? While debugging #56456, I noticed that we cut useful information, namely the `Error` instances' [`cause` property](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause). ### Why? In #56456, it was hiding the following: ```sh Error: getaddrinfo EAI_AGAIN undefined at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) { errno: -3001, code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'undefined' } ``` which might be an indicator to the user what was going wrong with the `fetch` call. ### How? If there is a `err.cause` property, log it together with `err.digest` Note, this does not fix #56456 but might be useful to debug similar issues as well.
- Loading branch information