Changing error message for readline

This commit is contained in:
Matt McCoy 2016-06-21 21:55:04 -04:00
parent eeffe7420f
commit d5e8877eaf

View file

@ -293,7 +293,7 @@ impl<T: Read+Write> Client<T> {
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]);
}