Go: Output stdout/stderr for go version if something goes wrong

This commit is contained in:
Michael B. Gale
2024-07-18 15:37:59 +01:00
parent 8fa575d79b
commit 3a9ff64780

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())
}