1 post
Every time you wrap an error in another error, you bury the original stack trace. Error.cause is the ES2022 feature that preserves the full chain, and it will save you hours of production debugging.