From 3a9ff64780e7270164335395f3048c0291da5124 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Thu, 18 Jul 2024 15:37:59 +0100 Subject: [PATCH] Go: Output stdout/stderr for `go version` if something goes wrong --- go/extractor/toolchain/toolchain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/extractor/toolchain/toolchain.go b/go/extractor/toolchain/toolchain.go index 2a963c18f041..029390432376 100644 --- a/go/extractor/toolchain/toolchain.go +++ b/go/extractor/toolchain/toolchain.go @@ -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()) }