Skip to content

Commit

Permalink
Merge pull request #17016 from github/mbg/go/log-output-for-go-version
Browse files Browse the repository at this point in the history
Go: Output stdout/stderr for `go version` if something goes wrong
  • Loading branch information
mbg authored Jul 18, 2024
2 parents 8fa575d + 3a9ff64 commit 9a72914
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/extractor/toolchain/toolchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit 9a72914

Please sign in to comment.