]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/line: fix error call (missing argument)
authorRob Pike <r@golang.org>
Wed, 12 Jan 2011 08:25:29 +0000 (00:25 -0800)
committerRob Pike <r@golang.org>
Wed, 12 Jan 2011 08:25:29 +0000 (00:25 -0800)
R=agl1, rsc
CC=golang-dev
https://golang.org/cl/3861044

src/pkg/encoding/line/line_test.go

index 70ae642e11c0bd366a20b492686139b040a70994..68d13b58616a5dfc38901257da790b6bff8cbc96 100644 (file)
@@ -44,10 +44,10 @@ func testLineReader(t *testing.T, input []byte) {
                for {
                        line, isPrefix, err := l.ReadLine()
                        if len(line) > 0 && err != nil {
-                               t.Errorf("ReadLine returned both data and error: %s\n")
+                               t.Errorf("ReadLine returned both data and error: %s", err)
                        }
                        if isPrefix {
-                               t.Errorf("ReadLine returned prefix\n")
+                               t.Errorf("ReadLine returned prefix")
                        }
                        if err != nil {
                                if err != os.EOF {