Skip to content

Commit e96c3ab

Browse files
committed
Some more logging in exec_command_then_exit
1 parent 31e4b6f commit e96c3ab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jscomp/main/rescript_main.ml

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,13 @@ let failed_annon ~rev_args =
5353

5454
(** Invariant: it has to be the last command of [bsb] *)
5555
let exec_command_then_exit (type t) (command : string) : t =
56+
print_endline "exec_command_then_exit";
57+
print_endline command;
5658
Bsb_log.info "@{<info>CMD:@} %s@." command;
57-
exit (Sys.command command)
59+
print_endline "exec_command_then_exit 2";
60+
let ret = Sys.command command in
61+
print_endline "exec_command_then_exit 3";
62+
exit ret
5863

5964
(* Execute the underlying ninja build call, then exit (as opposed to keep watching) *)
6065
let ninja_command_exit (type t) (ninja_args : string array) : t =

0 commit comments

Comments
 (0)