Skip to content

Commit

Permalink
Pass in error to log line with placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbrainard committed Aug 2, 2020
1 parent c563199 commit 50e7cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/patterns/accept-loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async fn accept_loop(addr: impl ToSocketAddrs) -> Result<()> {
let stream = match result {
Err(ref e) if is_connection_error(e) => continue, // 1
Err(e) => {
eprintln!("Error: {}. Pausing for 500ms."); // 3
eprintln!("Error: {}. Pausing for 500ms.", e); // 3
task::sleep(Duration::from_millis(500)).await; // 2
continue;
}
Expand Down

0 comments on commit 50e7cf0

Please sign in to comment.