diff --git a/library/std/src/thread/scoped.rs b/library/std/src/thread/scoped.rs index 2bc93549dab..c1b501f3aff 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, }