summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2021-11-02 21:20:04 -0700
committerDavid Tolnay <dtolnay@gmail.com>2021-11-02 21:21:52 -0700
commitbb5587ca27ec95d8e23b9e09edf4b5a56f2f153e (patch)
treec978d03c4904a1c9fbf318d665f6fe27a69f7a17 /src
parent6f507d01c645b2f91547abde2ac572ea49b17187 (diff)
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 <dtolnay@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/endpoint/scheduler.rs2
1 files changed, 1 insertions, 1 deletions
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,