Skip to content

Commit

Permalink
fix the error message (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamadazmy authored Nov 20, 2023
1 parent 3a21664 commit 22735e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/peer/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ where

let e = reply.mut_error();
e.code = err.code();
e.message = e.to_string();
e.message = err.to_string();
reply.stamp();
if let Err(err) = self.writer.write(reply).await {
log::error!("failed to send error response to sender: {}", err);
Expand Down

0 comments on commit 22735e5

Please sign in to comment.