3 ms·
It's wild that that's not what the section is about. Extending error is not new at-all.
by seniorsassycat 1y ago
It's wild that that's not what the section is about. Extending error is not new at-all.
- serguzest 1y agoMost people (including the author apparently) don't know they can chain errors with cause option in-built way in node and in browser. It is not just arbitrary extending and it is relatively a new thing. https://nodejs.org/api/errors.html#errorcause https://nodejs.org/api/errors.html#errorcause
- seniorsassycat 1y agoI've found that a lot of logging frameworks and patterns will not include cause which can absolutely fuck debugging