From 48155f5440ab4ffb2e3c31646cecb504af735ff5 Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Mon, 2 Nov 2015 17:37:31 -0500 Subject: [PATCH] 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/16555 Reviewed-by: David Crawshaw --- misc/ios/go_darwin_arm_exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/ios/go_darwin_arm_exec.go b/misc/ios/go_darwin_arm_exec.go index debd2cdb30..4d658e770c 100644 --- a/misc/ios/go_darwin_arm_exec.go +++ b/misc/ios/go_darwin_arm_exec.go @@ -103,7 +103,7 @@ func main() { func getenv(envvar string) string { s := os.Getenv(envvar) 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 } -- 2.48.1