This commit is contained in:
Anna Khanova
2024-06-06 14:23:26 +02:00
parent d1270f2571
commit 00d65b4ea3

View File

@@ -329,6 +329,12 @@ async fn parse_body<T: for<'a> serde::Deserialize<'a>>(
return Ok(response.json().await?);
}
info!("response_error: {:?}", response);
let s: String = response.json().await?;
info!("response_error: {:?}", s);
return Err(ApiError::Console {
status,
text: s.into(),
});
// Don't throw an error here because it's not as important
// as the fact that the request itself has failed.