We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba61b0 commit 2cfaf71Copy full SHA for 2cfaf71
crates/service/src/settings/targets/mod.rs
@@ -267,12 +267,25 @@ impl RequestBuilderPerform for RequestBuilder {
267
Ok(response)
268
}
269
270
- Err(e) => Err(anyhow::anyhow!(
271
- "failed to {} {}: {}",
272
- built.method(),
273
- built.url(),
274
- e,
275
- )),
+ Err(e) => {
+ let status = e.status();
+ if let Some(status) = status {
+ return Err(anyhow::anyhow!(
+ "failed to {} {}: {} - {}",
+ built.method(),
276
+ built.url(),
277
+ status,
278
+ e
279
+ ));
280
+ }
281
+
282
+ Err(anyhow::anyhow!(
283
+ "failed to {} {}: {}",
284
285
286
+ e,
287
+ ))
288
289
290
291
0 commit comments