From 878ff2eed64334a0573c21c3628cc5e487b39a5d Mon Sep 17 00:00:00 2001 From: Ralf Grubenmann Date: Mon, 16 Mar 2026 10:43:08 +0100 Subject: [PATCH] add suggestion for when job logs are missing --- coman/src/cscs/handlers.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/coman/src/cscs/handlers.rs b/coman/src/cscs/handlers.rs index f3fbdee..adbcfed 100644 --- a/coman/src/cscs/handlers.rs +++ b/coman/src/cscs/handlers.rs @@ -11,7 +11,7 @@ use std::{ }; use base64::prelude::*; -use color_eyre::{Result, eyre::eyre}; +use color_eyre::{Result, Section, eyre::eyre}; use eyre::Context; use futures::StreamExt; use iroh::{Endpoint, EndpointId, SecretKey}; @@ -191,7 +191,8 @@ pub async fn cscs_job_log( "No {} log exists for job {}", if stderr { "stderr" } else { "stdout" }, job_id - )); + )) + .suggestion("It might take a while for the log to be created, try again later"); } let path = PathBuf::from(path);