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 committed Nov 2, 2023
1 parent 342c846 commit 2f59a5d
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 @@ -36,7 +36,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 2f59a5d

Please sign in to comment.