Commit 48155f54 authored by Michael Matloob's avatar Michael Matloob

misc/ios: fix an error when getenv encounters unset variable

The error message should indicate the name of the unset variable,
rather than the value. The value will alwayse be empty.

Change-Id: I6f6c165074dfce857b6523703a890d205423cd28
Reviewed-on: https://go-review.googlesource.com/16555Reviewed-by: default avatarDavid Crawshaw <crawshaw@golang.org>
parent e3e0122a
...@@ -103,7 +103,7 @@ func main() { ...@@ -103,7 +103,7 @@ func main() {
func getenv(envvar string) string { func getenv(envvar string) string {
s := os.Getenv(envvar) s := os.Getenv(envvar)
if s == "" { if s == "" {
log.Fatalf("%s not set\nrun $GOROOT/misc/ios/detect.go to attempt to autodetect", s) log.Fatalf("%s not set\nrun $GOROOT/misc/ios/detect.go to attempt to autodetect", envvar)
} }
return s return s
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment