diff --git a/gremlin-client/src/aio/connection.rs b/gremlin-client/src/aio/connection.rs index f76e72d5..445c6c51 100644 --- a/gremlin-client/src/aio/connection.rs +++ b/gremlin-client/src/aio/connection.rs @@ -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);