Skip to content

Commit

Permalink
Try to at least print failed deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
criminosis committed Feb 14, 2024
1 parent 709d432 commit d810129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gremlin-client/src/aio/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ fn receiver_loop(
}
Some(Ok(item)) => match item {
Message::Binary(data) => {
let response: Response = serde_json::from_slice(&data).unwrap();
let response: Response = serde_json::from_slice(&data).expect(&format!("Failed deserialization of {}", String::from_utf8(data)));
let mut guard = requests.lock().await;
if response.status.code != 206 {
let item = guard.remove(&response.request_id);
Expand Down

0 comments on commit d810129

Please sign in to comment.