package magic-trace

  1. Overview
  2. Docs

Using C errno numbers is a convenient way to plumb errors we might want to handle gracefully out of a C stub, rather than using exceptions. This file provides some utilities for converting them to OCaml errors.

val to_error : int -> 'a Core.Or_error.t
val to_result : int -> unit Core.Or_error.t

Innovation. Community. Security.