pub fn task_error(hook_name: &str, reason: impl Display) -> String
Format error when a task execution fails (tokio/threading)