Uh oh!
There was an error while loading. Please reload this page.
Add panic function - #72
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I typically don't use the exn functions, but is it problematic that we're changing what exn a bunch of functions is raising? I'm thinking about the case when people are actually relying on catching them. Edit: oops, accidentally fat finger closed the PR... |
glennsl
commented
Feb 26, 2023
It should probably be noted as a breaking change, but these are all functions that have non-exception-raising alternatives. It doesn't really make sense to catch these exceptions, since you should then use the alternative non-exception-raising function instead (that definitely doesn't mean that people aren't still using it though). |
Uh oh!
There was an error while loading. Please reload this page.
zth
commented
Feb 28, 2023
So, what about splitting this up, first adding the |
Uh oh!
There was an error while loading. Please reload this page.
refactor(error): less magic needed Co-authored-by: Christoph Knittel <christoph@knittel.cc> docs(error): panic fixes Co-authored-by: Christoph Knittel <christoph@knittel.cc> docs(error): ReScript, not OCaml
glennsl
commented
Feb 28, 2023
Done. Internal use split out to #79 |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Christoph Knittel <christoph@knittel.cc>
zth
commented
Mar 1, 2023
Thanks @glennsl ! |
panicis likefailwithbut raises a native JavaScript exception that gives a better stack trace and in-browser debugging experience.