Skip to content

Commit

Permalink
Go: Output stdout/stderr for go version if something goes wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg committed Jul 18, 2024
1 parent 8fa575d commit 3a9ff64
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 3a9ff64

Please sign in to comment.