Skip to content

Commit

Permalink
driver.mld: Fix Mdx error hidden by Dune error
Browse files Browse the repository at this point in the history
As the driver reports errors with promotion and not with an exit status,
the driver could fail to generate `driver-benchmarks.json`, in which
case Dune would complain about the missing target and would not show the
diff containing the error.
  • Loading branch information
Julow authored and jonludlam committed Nov 7, 2023
1 parent 036ba73 commit dfefbcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/dune
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
(glob_files library_mlds/*)
(glob_files examples/*.ml*))
(action
(run ocaml-mdx-test --force-output %{dep:driver.mld})))
(progn
(write-file driver-benchmarks.json "")
(run ocaml-mdx-test --force-output %{dep:driver.mld}))))

(rule
(alias docgen)
Expand Down

0 comments on commit dfefbcc

Please sign in to comment.