Mention *scoped* thread in panic message.

Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
This commit is contained in:
Mara Bos 2022-01-05 11:17:11 +00:00 committed by GitHub
parent aa9c0881ef
commit 4cb73704e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}