Skip to content

Commit 419b84c

Browse files
EmeraldShiftXyene
authored andcommitted
Use qualified output path for -share flag
Signed-off-by: Michael Jarrett <mjarrett@janestreet.com>
1 parent 05aa835 commit 419b84c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tracing_tool_output.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ module Share = struct
116116
{ share_command_filename })
117117
;;
118118

119-
let share_trace_file t ~filename =
119+
let share_trace_file t ~output_path =
120120
Process.run_forwarding
121121
~prog:t.share_command_filename
122-
~args:[ Filename_unix.realpath filename ]
122+
~args:[ Filename_unix.realpath output_path ]
123123
()
124124
;;
125125
end
@@ -218,7 +218,7 @@ let write_and_maybe_serve
218218
let%bind () =
219219
match display_mode with
220220
| Disabled -> notify_trace ~store_path:output_path
221-
| Share share -> Share.share_trace_file share ~filename
221+
| Share share -> Share.share_trace_file share ~output_path
222222
| Serve serve ->
223223
Serve.serve_trace_file serve ~filename ~store_path:indirect_store_path
224224
in

0 commit comments

Comments
 (0)