mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-08 03:47:57 -04:00
try to avoid capture
This commit is contained in:
parent
a6ba54a817
commit
b1ccd58040
1 changed files with 2 additions and 2 deletions
|
|
@ -53,9 +53,9 @@ let expand_top_let ~ctxt rec_flag (vbs : _ list) =
|
||||||
Trace_core.enter_span ~__FILE__ ~__LINE__ __FUNCTION__
|
Trace_core.enter_span ~__FILE__ ~__LINE__ __FUNCTION__
|
||||||
in
|
in
|
||||||
try
|
try
|
||||||
let res = [%e e] in
|
let _trace_ppx_res = [%e e] in
|
||||||
Trace_core.exit_span _trace_span;
|
Trace_core.exit_span _trace_span;
|
||||||
res
|
__trace_ppx_res
|
||||||
with exn ->
|
with exn ->
|
||||||
Trace_core.exit_span _trace_span;
|
Trace_core.exit_span _trace_span;
|
||||||
raise exn]
|
raise exn]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue