diff --git a/lib/go/camli/test/asserts/asserts.go b/lib/go/camli/test/asserts/asserts.go index 9a74f3ed4..ce24648b9 100644 --- a/lib/go/camli/test/asserts/asserts.go +++ b/lib/go/camli/test/asserts/asserts.go @@ -92,13 +92,13 @@ func ExpectNil(t *testing.T, v interface{}, what string) { if v == nil { return } - t.Errorf("%s: expected nil; got %v", v) + t.Errorf("%s: expected nil; got %v", what, v) } func AssertNil(t *testing.T, v interface{}, what string) { if v == nil { return } - t.Fatalf("%s: expected nil; got %v", v) + t.Fatalf("%s: expected nil; got %v", what, v) }