From bb5587ca27ec95d8e23b9e09edf4b5a56f2f153e Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 2 Nov 2021 21:20:04 -0700 Subject: Fix missing fmt argument in error message Without this, the error message would literally be "Running container {} failed" with curly braces in it instead of the container id. Signed-off-by: David Tolnay --- src/endpoint/scheduler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/endpoint/scheduler.rs b/src/endpoint/scheduler.rs index 014d68a..968fec3 100644 --- a/src/endpoint/scheduler.rs +++ b/src/endpoint/scheduler.rs @@ -213,7 +213,7 @@ impl JobHandle { let (run_container, logres) = tokio::join!(running_container, logres); let log = logres.with_context(|| anyhow!("Collecting logs for job on '{}'", endpoint_name))?; let run_container = run_container - .with_context(|| anyhow!("Running container {} failed")) + .with_context(|| anyhow!("Running container {} failed", container_id)) .with_context(|| { Self::create_job_run_error( &job_id, -- cgit v1.2.3