Skip to content

Commit

Permalink
Fix issue ocaml#3737
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Hu <[email protected]>
  • Loading branch information
alan-j-hu committed Sep 16, 2020
1 parent 6b825fa commit 3d7719b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dune_engine/scheduler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,10 @@ end = struct
let fiber =
Fiber.Var.set t_var t (fun () -> Fiber.with_error_handler f ~on_error)
in
Console.Status_line.set (Fun.const None);
match Fiber.run fiber ~iter with
| res ->
assert (Event.pending_jobs () = 0);
Console.Status_line.set (Fun.const None);
Ok res
| exception Abort err -> Error err
| exception exn -> Error (Exn (Exn_with_backtrace.capture exn))
Expand Down

0 comments on commit 3d7719b

Please sign in to comment.