Skip to content

Commit 9a72914

Browse files
authored
Merge pull request #17016 from github/mbg/go/log-output-for-go-version
Go: Output stdout/stderr for `go version` if something goes wrong
2 parents 8fa575d + 3a9ff64 commit 9a72914

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/extractor/toolchain/toolchain.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func GetEnvGoVersion() string {
5353
out, err := cmd.CombinedOutput()
5454

5555
if err != nil {
56+
log.Println(string(out))
5657
log.Fatalf("Unable to run the go command, is it installed?\nError: %s", err.Error())
5758
}
5859

0 commit comments

Comments
 (0)