MOD:fix client return errorf
@@ -86,7 +86,7 @@ func sendReport(s status.Report) error {
// make sure we got a 200 and consider it an error otherwise
if resp.StatusCode != http.StatusOK {
writeLog("ERROR: got a bad status code from kuberhealthy:", resp.StatusCode, resp.Status)
- return fmt.Errorf("bad status code from kuberhealthy status reporting url: %s", resp.StatusCode, resp.Status)
+ return fmt.Errorf("bad status code from kuberhealthy status reporting url: [%d] %s ", resp.StatusCode, resp.Status)
}
writeLog("INFO: Got a good http return status code from kuberhealthy URL:", url)
