diff options
Diffstat (limited to 'libgo/go/template/exec_test.go')
-rw-r--r-- | libgo/go/template/exec_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/template/exec_test.go b/libgo/go/template/exec_test.go index 2d2b4029423..e32de4d40ff 100644 --- a/libgo/go/template/exec_test.go +++ b/libgo/go/template/exec_test.go @@ -158,8 +158,8 @@ func (t *T) MSort(m map[string]int) []string { return keys } -// EPERM returns a value and an os.Error according to its argument. -func (t *T) EPERM(error bool) (bool, os.Error) { +// EPERM returns a value and an error according to its argument. +func (t *T) EPERM(error bool) (bool, error) { if error { return true, os.EPERM } @@ -548,7 +548,7 @@ func TestExecuteError(t *testing.T) { err = tmpl.Execute(b, tVal) if err == nil { t.Errorf("expected error; got none") - } else if !strings.Contains(err.String(), os.EPERM.String()) { + } else if !strings.Contains(err.Error(), os.EPERM.Error()) { if *debug { fmt.Printf("test execute error: %s\n", err) } |