jolokia: add some error message context (#7906)

This commit is contained in:
Steven Soroka 2020-07-27 16:07:15 -04:00 committed by GitHub
parent 72fdfd8bb0
commit dab07c61e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,8 @@ func (g *Gatherer) generatePoints(metric Metric, responses []ReadResponse) ([]po
case 404:
continue
default:
errors = append(errors, fmt.Errorf("Unexpected status in response from target %s: %d",
response.RequestTarget, response.Status))
errors = append(errors, fmt.Errorf("Unexpected status in response from target %s (%q): %d",
response.RequestTarget, response.RequestMbean, response.Status))
continue
}