Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tooling/test/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ func report(t *testing.T, test SugarTest, req *http.Request, res *http.Response,
// "http: ContentLength=6 with Body length 0"
b, err = httputil.DumpResponse(v, false)
default:
panic("unknown type")
return fmt.Sprintf("error: unknown type %T", v)
}

if err != nil {
panic(err)
return fmt.Sprintf("error: failed to dump %T: %v", v, err)
}

return string(b)
Expand Down
Loading