Skip to content

Commit a45c770

Browse files
committed
Driver: Fix failure when output dir does not exist
1 parent 4020a81 commit a45c770

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/driver/compile.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ let sherlodoc_index_one ~output_dir (index : Odoc_unit.index) =
227227

228228
let html_generate output_dir linked =
229229
let tbl = Hashtbl.create 10 in
230+
let _ = OS.Dir.create output_dir |> Result.get_ok in
230231
Sherlodoc.js Fpath.(output_dir // Sherlodoc.js_file);
231232
let compile_index : Odoc_unit.index -> _ =
232233
fun index ->

0 commit comments

Comments
 (0)