mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
Fix undesired multi-line error message (#605)
This commit is contained in:
@@ -189,7 +189,7 @@ impl<T> Sink for FramedWrite2<T>
|
|||||||
let n = try_ready!(self.inner.poll_write(&self.buffer));
|
let n = try_ready!(self.inner.poll_write(&self.buffer));
|
||||||
|
|
||||||
if n == 0 {
|
if n == 0 {
|
||||||
return Err(io::Error::new(io::ErrorKind::WriteZero, "failed to
|
return Err(io::Error::new(io::ErrorKind::WriteZero, "failed to \
|
||||||
write frame to transport").into());
|
write frame to transport").into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user