unjs / consola

🐨 Elegant Console Logger for Node.js and Browser
Other
6k stars 175 forks source link

Add error.cause support #202

Open navin-moorthy opened 1 year ago

navin-moorthy commented 1 year ago

Describe the feature

Expected behaviour mentioned in the issue - https://github.com/denoland/deno/issues/13413

image

Additional information

pi0 commented 1 year ago

For reference also: https://v8.dev/features/error-cause

(PR is more than welcome. Let me know if you like to help on supporting and need some help)

kongmoumou commented 2 months ago

I also want this feature. It's really helpful for debugging root cause if the error was wrapped and re-thrown. Looking forward to ur response for pr #308 . 🫡