Skip to content

Commit 50e7cf0

Browse files
committed
Pass in error to log line with placeholder
1 parent c563199 commit 50e7cf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/patterns/accept-loop.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async fn accept_loop(addr: impl ToSocketAddrs) -> Result<()> {
124124
let stream = match result {
125125
Err(ref e) if is_connection_error(e) => continue, // 1
126126
Err(e) => {
127-
eprintln!("Error: {}. Pausing for 500ms."); // 3
127+
eprintln!("Error: {}. Pausing for 500ms.", e); // 3
128128
task::sleep(Duration::from_millis(500)).await; // 2
129129
continue;
130130
}

0 commit comments

Comments
 (0)