Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 50e7cf0

Browse files
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /