diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-01-05 11:17:11 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-05 11:17:11 +0000 |
| commit | 4cb73704e2f0be18f44c295a9b8435e015419dda (patch) | |
| tree | 6da5d30d2161db3488657582b1a709b07518c42b | |
| parent | aa9c0881efb116c20c9550ba26150a2060a276f0 (diff) | |
| download | rust-4cb73704e2f0be18f44c295a9b8435e015419dda.tar.gz rust-4cb73704e2f0be18f44c295a9b8435e015419dda.zip | |
Mention *scoped* thread in panic message.
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
| -rw-r--r-- | library/std/src/thread/scoped.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, } |
