Skip to content

Commit

Permalink
Improve error handling when neither yum nor dnf is found
Browse files Browse the repository at this point in the history
Co-authored-by: R. Boujbel <[email protected]>
  • Loading branch information
kit-ty-kate and rjbou committed Nov 10, 2021
1 parent f7e46bb commit cb488a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/opamSysInteract.ml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ let yum_cmd = lazy begin
else if OpamSystem.resolve_command "dnf" <> None then
"dnf"
else
failwith "Could not find either yum or dnf to install external dependencies"
raise (OpamSystem.Command_not_found "yum or dnf")
end

let packages_status packages =
Expand Down

0 comments on commit cb488a7

Please sign in to comment.