Changing error message for readline
This commit is contained in:
parent
eeffe7420f
commit
d5e8877eaf
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue