Closed talex5 closed 6 days ago
If the fiber fails, record the backtrace when failing the switch. fork itself already did this, but fork_daemon and fork_promise_exn didn't.
fork
fork_daemon
fork_promise_exn
This caused unhelpful errors such as:
Fatal error: exception Not_found Raised at Eio__core__Switch.maybe_raise_exs in file "lib_eio/core/switch.ml", line 119, characters 21-56
If the fiber fails, record the backtrace when failing the switch.
fork
itself already did this, butfork_daemon
andfork_promise_exn
didn't.This caused unhelpful errors such as: