From d57ff580a3122c89b23c2042aaac71ce84efe6d2 Mon Sep 17 00:00:00 2001 From: Morgan Mccauley Date: Tue, 11 Jun 2024 15:58:31 +1200 Subject: [PATCH] feat: Add error context to executors_handler --- coordinator/src/executors_handler.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coordinator/src/executors_handler.rs b/coordinator/src/executors_handler.rs index 1282e9598..28717b924 100644 --- a/coordinator/src/executors_handler.rs +++ b/coordinator/src/executors_handler.rs @@ -89,7 +89,8 @@ impl ExecutorsHandlerImpl { .client .clone() .stop_executor(Request::new(request.clone())) - .await?; + .await + .context(format!("Failed to stop executor: {executor_id}"))?; tracing::debug!(executor_id, "Stop executor response: {:#?}", response);