From 70af3d9ec3d3764bfaaeaf578bee8809767d644b Mon Sep 17 00:00:00 2001 From: Shon Feder Date: Sat, 10 Aug 2024 00:36:33 -0400 Subject: [PATCH] Fail hard with a todo for missing opam repo Fits with the docs of the opam `local_opam_repo_term`, which says this is optional, and that we will default in its absence. --- bin/main.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/main.ml b/bin/main.ml index 78641b2..68b6c94 100644 --- a/bin/main.ml +++ b/bin/main.ml @@ -10,7 +10,7 @@ let to_exit_code : (unit, string) result Term.t -> Cmd.Exit.code Term.t = let lint (changed_pkgs, new_pkgs) local_repo_dir = match local_repo_dir with - | None -> Error "No opam repository directory specified." + | None -> failwith "TODO: default to using the opam repository" | Some d -> ( print_endline @@ Printf.sprintf "Linting opam-repository at %s ..." d; match Lint.check ~new_pkgs ~changed_pkgs d with