ocaml-fileutils
ocaml-fileutils copied to clipboard
Silence exceptions raised when closing after an exception in FileUtilCP
We're seeing reports of an error with a backtrace that cannot be used because a subsequent Unix.close
erases the original exception. See: https://github.com/savonet/liquidsoap/issues/3732
This PR makes the close silent and preserves the original backtrace when re-raising the exception.