Skip to content

Commit

Permalink
Fix ignored error during 'opam init'
Browse files Browse the repository at this point in the history
Errors during 'opam init' were inadvertently ignored.
  • Loading branch information
Julow committed Jul 1, 2022
1 parent 6cceeb2 commit eadfc9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ let rec log_error = function
let install_platform () =
let opam_opts = Platform.Opam.GlobalOpts.default in
let install_res =
let _ = Platform.Opam.check_init () in
let open Result.Syntax in
let* () = Platform.Opam.check_init () in
Platform.Tools.(install opam_opts (platform ()))
in
match install_res with
Expand Down

0 comments on commit eadfc9d

Please sign in to comment.