From d5e8877eaf6a6ad57b93de5360985856f4e76506 Mon Sep 17 00:00:00 2001 From: Matt McCoy Date: Tue, 21 Jun 2016 21:55:04 -0400 Subject: [PATCH] Changing error message for readline --- src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index a76c007..e8fc85d 100644 --- a/src/client.rs +++ b/src/client.rs @@ -293,7 +293,7 @@ impl Client { let byte_buffer: &mut [u8] = &mut [0]; match self.stream.read(byte_buffer) { Ok(_) => {}, - Err(_) => return Err(Error::new(ErrorKind::Other, "Failed to read the response")), + Err(_) => return Err(Error::new(ErrorKind::Other, "Failed to read line")), } line_buffer.push(byte_buffer[0]); }