aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/template/exec_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-11-01 22:05:34 -0400
committerRuss Cox <rsc@golang.org>2011-11-01 22:05:34 -0400
commiteb6929299b6da3d9bea1fa7f7cd319c2de9242bb (patch)
treed3309a8985202985334709bc50e1a737ea117593 /src/pkg/template/exec_test.go
parentc2049d2dfeeea3d41fafa91e3e3f0e47c285355b (diff)
downloadgo-eb6929299b6da3d9bea1fa7f7cd319c2de9242bb.tar.xz
src/pkg/[n-z]*: gofix -r error -force=error
R=golang-dev, bsiegert, iant CC=golang-dev https://golang.org/cl/5294074
Diffstat (limited to 'src/pkg/template/exec_test.go')
-rw-r--r--src/pkg/template/exec_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/template/exec_test.go b/src/pkg/template/exec_test.go
index 2d2b402942..20839c3e34 100644
--- a/src/pkg/template/exec_test.go
+++ b/src/pkg/template/exec_test.go
@@ -159,7 +159,7 @@ func (t *T) MSort(m map[string]int) []string {
}
// EPERM returns a value and an os.Error according to its argument.
-func (t *T) EPERM(error bool) (bool, os.Error) {
+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)
}