chore: better highlight panicked task name (#3205)

This commit is contained in:
Matthias Seitz
2023-06-16 17:02:32 +02:00
committed by GitHub
parent 3ace10d835
commit 94d0f3e9ed

View File

@ -183,7 +183,7 @@ impl Future for TaskManager {
/// Error with the name of the task that panicked. /// Error with the name of the task that panicked.
#[derive(Debug, thiserror::Error)] #[derive(Debug, thiserror::Error)]
#[error("Critical task panicked {0}")] #[error("Critical task panicked: `{0}`")]
pub struct PanickedTaskError(&'static str); pub struct PanickedTaskError(&'static str);
/// A type that can spawn new tokio tasks /// A type that can spawn new tokio tasks