Report the status text in addition to the code on failure. (#627)

This should surface better info from the 502s we've been seeing (I hope).
This commit is contained in:
Matt Moore 2019-09-03 11:52:01 -07:00 committed by Knative Prow Robot
parent 3dd5d66573
commit 6c69e99ee3
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func IsOneOfStatusCodes(codes ...int) spoof.ResponseChecker {
}
}
return true, fmt.Errorf("status = %d, want one of: %v", resp.StatusCode, codes)
return true, fmt.Errorf("status = %d %s, want one of: %v", resp.StatusCode, resp.Status, codes)
}
}