mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: better highlight panicked task name (#3205)
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user