improvement: better logs on deserialization errors
This commit is contained in:
@@ -160,7 +160,7 @@ where
|
|||||||
.expect("reqwest body is valid http body"),
|
.expect("reqwest body is valid http body"),
|
||||||
);
|
);
|
||||||
response.map_err(|e| {
|
response.map_err(|e| {
|
||||||
warn!("{}", e);
|
warn!("Server returned bad response: {:?}", e);
|
||||||
Error::BadServerResponse("Server returned bad response.")
|
Error::BadServerResponse("Server returned bad response.")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user