From 94d0f3e9edcee6bf825d5b349d889f6ef562d1dd Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Jun 2023 17:02:32 +0200 Subject: [PATCH] chore: better highlight panicked task name (#3205) --- crates/tasks/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tasks/src/lib.rs b/crates/tasks/src/lib.rs index 4f7e61b6b..79ce94027 100644 --- a/crates/tasks/src/lib.rs +++ b/crates/tasks/src/lib.rs @@ -183,7 +183,7 @@ impl Future for TaskManager { /// Error with the name of the task that panicked. #[derive(Debug, thiserror::Error)] -#[error("Critical task panicked {0}")] +#[error("Critical task panicked: `{0}`")] pub struct PanickedTaskError(&'static str); /// A type that can spawn new tokio tasks