diff options
Diffstat (limited to 'libgo/go/testing/example.go')
-rw-r--r-- | libgo/go/testing/example.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/testing/example.go b/libgo/go/testing/example.go index f148951..5b3e322 100644 --- a/libgo/go/testing/example.go +++ b/libgo/go/testing/example.go @@ -25,7 +25,7 @@ func RunExamples(examples []InternalExample) (ok bool) { defer func() { os.Stdout, os.Stderr = stdout, stderr if e := recover(); e != nil { - if err, ok := e.(os.Error); ok { + if err, ok := e.(error); ok { fmt.Fprintln(os.Stderr, err) os.Exit(1) } |