diff options
Diffstat (limited to 'test/recover3.go')
-rw-r--r-- | test/recover3.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/recover3.go b/test/recover3.go index 2aa1df616..60ade9b61 100644 --- a/test/recover3.go +++ b/test/recover3.go @@ -35,7 +35,7 @@ func check(name string, f func(), err string) { println(name, "panicked but not with runtime.Error") return } - s := runt.String() + s := runt.Error() if strings.Index(s, err) < 0 { bug() println(name, "panicked with", s, "not", err) |