Skip to content

Commit

Permalink
Merge pull request #26 from mempool/fix/tcpstream-error
Browse files Browse the repository at this point in the history
Fix: TcpStream error handling
  • Loading branch information
softsimon authored Aug 3, 2023
2 parents a19ce10 + 50fb9bb commit a21a958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl Connection {
.chain_err(|| {
ErrorKind::Connection("disconnected from daemon while receiving".to_owned())
})?
.chain_err(|| "failed to read status")?;
.chain_err(|| ErrorKind::Connection("failed to read status".to_owned()))?;
let mut headers = HashMap::new();
for line in iter {
let line = line.chain_err(|| ErrorKind::Connection("failed to read".to_owned()))?;
Expand Down

0 comments on commit a21a958

Please sign in to comment.