From bff16976d902e297999e2813ead7f161ab619f18 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 1 Nov 2011 22:06:05 -0400 Subject: non-pkg: gofix -r error -force=error R=golang-dev, iant, r, r CC=golang-dev http://codereview.appspot.com/5307066 --- test/recover2.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test/recover2.go') diff --git a/test/recover2.go b/test/recover2.go index 9affe25d4..ccaf8ced1 100644 --- a/test/recover2.go +++ b/test/recover2.go @@ -11,10 +11,7 @@ package main -import ( - "os" - "strings" -) +import "strings" var x = make([]byte, 10) @@ -33,7 +30,7 @@ func mustRecover(s string) { if v == nil { panic("expected panic") } - if e := v.(os.Error).String(); strings.Index(e, s) < 0 { + if e := v.(error).Error(); strings.Index(e, s) < 0 { panic("want: " + s + "; have: " + e) } } -- cgit v1.2.1