Commit 18b39f20 authored by Rob Pike's avatar Rob Pike

json: fix Fatal call in test

R=rsc
CC=golang-dev
https://golang.org/cl/3751041
parent 38323890
......@@ -112,7 +112,7 @@ func TestMarshalBadUTF8(t *testing.T) {
t.Fatal("Marshal returned data")
}
if _, ok := err.(*InvalidUTF8Error); !ok {
t.Fatal("Marshal did not return InvalidUTF8Error: %T %v", err, err)
t.Fatalf("Marshal did not return InvalidUTF8Error: %T %v", err, err)
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment