Skip to content

Commit

Permalink
Mention *scoped* thread in panic message.
Browse files Browse the repository at this point in the history
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
  • Loading branch information
m-ou-se and Amanieu committed Jan 5, 2022
1 parent aa9c088 commit 4cb7370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/thread/scoped.rs
Expand Up @@ -119,7 +119,7 @@ where
match result {
Err(e) => resume_unwind(e),
Ok(_) if scope.data.a_thread_panicked.load(Ordering::Relaxed) => {
panic!("a thread panicked")
panic!("a scoped thread panicked")
}
Ok(result) => result,
}
Expand Down

0 comments on commit 4cb7370

Please sign in to comment.