o1-labs / snarky

OCaml DSL for verifiable computation
MIT License
492 stars 73 forks source link

Add run_and_check_exn and friends #822

Closed mrmr1993 closed 1 year ago

mrmr1993 commented 1 year ago

This PR adds versions of run_and_check and check that don't capture the exception in an Or_error.t, instead allowing the exception itself to propagate. This allows e.g. SnarkyJS to handle the errors more directly.