From 4cb73704e2f0be18f44c295a9b8435e015419dda Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Wed, 5 Jan 2022 11:17:11 +0000 Subject: [PATCH] Mention *scoped* thread in panic message. Co-authored-by: Amanieu d'Antras --- library/std/src/thread/scoped.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/thread/scoped.rs b/library/std/src/thread/scoped.rs index 2bc93549dab26..c1b501f3aff7e 100644 --- a/library/std/src/thread/scoped.rs +++ b/library/std/src/thread/scoped.rs @@ -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, }