diff options
author | Russ Cox <rsc@golang.org> | 2011-11-01 22:06:05 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-11-01 22:06:05 -0400 |
commit | 44526cdbe0c012c2a9bf6fc493aa8ad3411b884f (patch) | |
tree | 25afb6c71d7243d18ecd3f74ec6a77fd04fe1871 /test/env.go | |
parent | eb6929299b6da3d9bea1fa7f7cd319c2de9242bb (diff) | |
download | go-44526cdbe0c012c2a9bf6fc493aa8ad3411b884f.tar.gz go-44526cdbe0c012c2a9bf6fc493aa8ad3411b884f.zip |
non-pkg: gofix -r error -force=error
R=golang-dev, iant, r, r
CC=golang-dev
https://golang.org/cl/5307066
Diffstat (limited to 'test/env.go')
-rw-r--r-- | test/env.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/env.go b/test/env.go index 28113bcb06..a4b9d05d87 100644 --- a/test/env.go +++ b/test/env.go @@ -14,7 +14,7 @@ import ( func main() { ga, e0 := os.Getenverror("GOARCH") if e0 != nil { - print("$GOARCH: ", e0.String(), "\n") + print("$GOARCH: ", e0.Error(), "\n") os.Exit(1) } if ga != runtime.GOARCH { @@ -23,7 +23,7 @@ func main() { } xxx, e1 := os.Getenverror("DOES_NOT_EXIST") if e1 != os.ENOENV { - print("$DOES_NOT_EXIST=", xxx, "; err = ", e1.String(), "\n") + print("$DOES_NOT_EXIST=", xxx, "; err = ", e1.Error(), "\n") os.Exit(1) } } |