Skip to content

Commit 3a964ca

Browse files
authored
Add additional error message to HttpResponseException (#3009)
1 parent 2530ba6 commit 3a964ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/profiler/service/ServiceProfilerClient.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ public Mono<ProfilerConfiguration> getSettings(Date oldTimeStamp) {
140140
.flatMap(
141141
response -> {
142142
if (response.getStatusCode() >= 300) {
143-
return Mono.error(new HttpResponseException(response));
143+
return Mono.error(
144+
new HttpResponseException(
145+
"Received error code " + response.getStatusCode() + " from " + requestUrl,
146+
response));
144147
}
145148
return response
146149
.getBodyAsString()

0 commit comments

Comments
 (0)