From d81012966418488a5926f78219902744b3f7f704 Mon Sep 17 00:00:00 2001 From: Allan Clements Date: Wed, 14 Feb 2024 16:13:40 -0600 Subject: [PATCH] Try to at least print failed deserialization --- gremlin-client/src/aio/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);