Skip to content

Commit

Permalink
config exec: error message if command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Apr 8, 2020
1 parent 7f24d9e commit b7ead8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/opamConfigCommand.ml
Original file line number Diff line number Diff line change
Expand Up @@ -757,4 +757,6 @@ let exec gt ?set_opamroot ?set_opamswitch ~inplace_path command =
in
match OpamSystem.resolve_command ~env cmd with
| Some cmd -> raise (OpamStd.Sys.Exec (cmd, args, env))
| None -> raise (OpamStd.Sys.Exit 127)
| None ->
OpamConsole.error "Command not found '%s'" cmd;
raise (OpamStd.Sys.Exit 127)

0 comments on commit b7ead8b

Please sign in to comment.