Skip to content

Commit ad5d1ed

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

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
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 =

lib/4.06.1/rescript.ml

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

1518615186
(** Invariant: it has to be the last command of [bsb] *)
1518715187
let exec_command_then_exit (type t) (command : string) : t =
15188+
print_endline "exec_command_then_exit";
15189+
print_endline command;
1518815190
Bsb_log.info "@{<info>CMD:@} %s@." command;
15189-
exit (Sys.command command)
15191+
print_endline "exec_command_then_exit 2";
15192+
let ret = Sys.command command in
15193+
print_endline "exec_command_then_exit 3";
15194+
exit ret
1519015195

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

0 commit comments

Comments
 (0)