ITADN

Support `cause` in Error constructor

#112Closederfanium 创建于 2023-08-07
good first issue
E
erfaniumcommented
### Prerequisites - [X] I have written a descriptive issue title - [X] I have searched existing issues to ensure the feature has not already been requested ### 🚀 Feature Proposal it would be great to be able to use cause option in fastify errors as well https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause ### Motivation _No response_ ### Example ```js const jsError = new Error("hey", { cause: new Error("cause") }) // supported by js const fError = new FASTIFY_ERROR("hey", { cause: new Error("cause") }); // not supported ```
关闭于 2023-10-14 13 条评论