From 0496f29a53d697cbb732d9e0b86c3c2a7949ad8d Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Mon, 3 May 2021 14:55:41 +0200 Subject: [PATCH] Display PATH when not finding com.docker.cli, to help debugging Signed-off-by: Guillaume Tardif --- cli/mobycli/exec.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/mobycli/exec.go b/cli/mobycli/exec.go index e4fe42175..de01215c8 100644 --- a/cli/mobycli/exec.go +++ b/cli/mobycli/exec.go @@ -89,6 +89,7 @@ func RunDocker(childExit chan bool, args ...string) error { execBinary, err := resolvepath.LookPath(ComDockerCli) if err != nil { fmt.Fprintln(os.Stderr, err) + fmt.Fprintln(os.Stderr, "Current PATH : "+os.Getenv("PATH")) os.Exit(1) } cmd := exec.Command(execBinary, args...)