Closed hhugo closed 3 months ago
I think it would be better to use caml_fatal_error
and eschew the fprintf
. This would hook into the support provided by the runtime system (notably you can easily define a caml_fatal_error_hook
to do what you want with the error reporting). See the discussions here.
Thank you!
fix #677