Mention *scoped* thread in panic message.
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
This commit is contained in:
parent
aa9c0881ef
commit
4cb73704e2
@ -119,7 +119,7 @@ pub fn scope<'env, F, T>(f: F) -> T
|
||||
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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user