Skip to content

Commit 4cb7370

Browse files
m-ou-seAmanieu
andauthored
Mention *scoped* thread in panic message.
Co-authored-by: Amanieu d'Antras <[email protected]>
1 parent aa9c088 commit 4cb7370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/thread/scoped.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ where
119119
match result {
120120
Err(e) => resume_unwind(e),
121121
Ok(_) if scope.data.a_thread_panicked.load(Ordering::Relaxed) => {
122-
panic!("a thread panicked")
122+
panic!("a scoped thread panicked")
123123
}
124124
Ok(result) => result,
125125
}

0 commit comments

Comments
 (0)