mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-08 20:25:28 -05:00
use more retro-compatible fun for CCError.of_exn_trace
This commit is contained in:
parent
096948e712
commit
fff366c41c
1 changed files with 1 additions and 2 deletions
|
|
@ -79,8 +79,7 @@ let of_exn_trace e =
|
|||
in
|
||||
try_printers !_printers;
|
||||
Buffer.add_string buf "\nstack trace:\n";
|
||||
Buffer.add_string buf
|
||||
(Printexc.raw_backtrace_to_string (Printexc.get_raw_backtrace ()));
|
||||
Buffer.add_string buf (Printexc.get_backtrace ());
|
||||
`Error (Buffer.contents buf)
|
||||
|
||||
let map f e = match e with
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue