mirror of https://github.com/knative/pkg.git
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:
parent
3dd5d66573
commit
6c69e99ee3
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue