From c6ffa2ff6b8fcf7e4eb542968e5e784efdf56dbd Mon Sep 17 00:00:00 2001 From: LIAUD Corentin Date: Mon, 15 Jul 2024 10:33:51 +0200 Subject: [PATCH] fix: Error message handling when FAIL --- src/adb_tcp_connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adb_tcp_connection.rs b/src/adb_tcp_connection.rs index e03b113..41b4212 100644 --- a/src/adb_tcp_connection.rs +++ b/src/adb_tcp_connection.rs @@ -88,7 +88,7 @@ impl AdbTcpConnection { match AdbRequestStatus::from_str(str::from_utf8(request_status.as_ref())?)? { AdbRequestStatus::Fail => { // We can keep reading to get further details - let length = self.get_body_length()?; + let length = self.get_hex_body_length()?; let mut body = vec![ 0;