Merge pull request #17016 from github/mbg/go/log-output-for-go-version

Go: Output stdout/stderr for `go version` if something goes wrong
This commit is contained in:
Michael B. Gale
2024-07-18 16:50:09 +01:00
committed by GitHub

View File

@@ -53,6 +53,7 @@ func GetEnvGoVersion() string {
out, err := cmd.CombinedOutput()
if err != nil {
log.Println(string(out))
log.Fatalf("Unable to run the go command, is it installed?\nError: %s", err.Error())
}