Skip to content

Commit

Permalink
warn if executable was not found when RunCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
motemen committed Mar 4, 2016
1 parent e1a9b8d commit 1aa8f7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down

0 comments on commit 1aa8f7c

Please sign in to comment.