Skip to content

Commit

Permalink
Handle codec errors in REQ socket recv (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
nullsauce committed Nov 1, 2023
1 parent 8de2dbe commit 59be7a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/req.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ impl SocketRecv for ReqSocket {
assert!(m.pop_front().unwrap().is_empty()); // Ensure that we have delimeter as first part
Ok(m)
}
Some(_) => todo!(),
Some(Ok(_)) => todo!(),
Some(Err(error)) => Err(error.into()),
None => Err(ZmqError::NoMessage),
}
} else {
Expand Down

0 comments on commit 59be7a0

Please sign in to comment.