~science-computing/butido

bb5587ca27ec95d8e23b9e09edf4b5a56f2f153e — David Tolnay 7 months ago 6f507d0
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>
1 files changed, 1 insertions(+), 1 deletions(-)

M src/endpoint/scheduler.rs
M src/endpoint/scheduler.rs => src/endpoint/scheduler.rs +1 -1
@@ 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,