Skip to content
Snippets Groups Projects
Commit 5a2f1b89 authored by Ian Jackson's avatar Ian Jackson
Browse files

Actually throw an anyhow

Prompted by a compiler warning which I weirdly can't seem to reproduce?
parent 981e6d7f
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ async fn client<S: AsyncRead + AsyncWrite + Unpin>(
let read = socket.read(&mut received).await?;
if read == 0 {
anyhow!("unexpected EOF");
return Err(anyhow!("unexpected EOF"));
}
let first_byte_ts = SystemTime::now();
socket.read_exact(&mut received[read..]).await?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment