mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
warn if executable was not found when RunCommand
This commit is contained in:
parent
e1a9b8dea9
commit
1aa8f7cfe5
|
|
@ -44,6 +44,9 @@ func RunCommand(cmd *exec.Cmd) error {
|
|||
|
||||
err := CommandRunner(cmd)
|
||||
if err != nil {
|
||||
if execErr, ok := err.(*exec.Error); ok {
|
||||
Log("warning", fmt.Sprintf("%q: %s", execErr.Name, execErr.Err))
|
||||
}
|
||||
return &RunError{cmd, err}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue