Closed theengineear closed 2 days ago
Note that this is currently supported in Firefox. Here’s a link to the Chrome bug.
This seems to work in all browsers now. BUT — we may want to consider that the cause
there may or may not itself have an error associated. I.e., an error cause
could be the original error, or it could be any compound object… I’m actually surprised / disappointed to learn this. It feels like a bad abstraction to me 🤷
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause
We’ve made the related changes here. Closing.
See #128 for the original motivation here. Just opening this ticket to simplify some of our error logging to keep things as tidy as possible.
Current:
Proposed:
☝️ — See the difference? We ought to not have to literally repeat / embed the original error in our own messaging.