From 1aa8f7cfe5385001dbc12e56604e49c5ebc5febd Mon Sep 17 00:00:00 2001 From: motemen Date: Sat, 5 Mar 2016 01:31:55 +0900 Subject: [PATCH] warn if executable was not found when RunCommand --- utils/run.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/run.go b/utils/run.go index 711921bd..d11a799e 100644 --- a/utils/run.go +++ b/utils/run.go @@ -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} }