mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -05:00
add Exn_bt.pp
This commit is contained in:
parent
ba1876f957
commit
0d325741f4
2 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ let[@inline] get_callstack n exn =
|
|||
make exn bt
|
||||
|
||||
let show self = Printexc.to_string (fst self)
|
||||
let pp out self = Format.pp_print_string out (show self)
|
||||
let[@inline] raise self = Printexc.raise_with_backtrace (exn self) (bt self)
|
||||
|
||||
type nonrec 'a result = ('a, t) result
|
||||
|
|
|
|||
|
|
@ -22,4 +22,6 @@ val raise : t -> 'a
|
|||
val show : t -> string
|
||||
(** Simple printing *)
|
||||
|
||||
val pp : Format.formatter -> t -> unit
|
||||
|
||||
type nonrec 'a result = ('a, t) result
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue