mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 09:52:54 +00:00
Upd
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user