jolokia: add some error message context (#7906)
This commit is contained in:
parent
72fdfd8bb0
commit
dab07c61e8
|
|
@ -88,8 +88,8 @@ func (g *Gatherer) generatePoints(metric Metric, responses []ReadResponse) ([]po
|
||||||
case 404:
|
case 404:
|
||||||
continue
|
continue
|
||||||
default:
|
default:
|
||||||
errors = append(errors, fmt.Errorf("Unexpected status in response from target %s: %d",
|
errors = append(errors, fmt.Errorf("Unexpected status in response from target %s (%q): %d",
|
||||||
response.RequestTarget, response.Status))
|
response.RequestTarget, response.RequestMbean, response.Status))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue