diff --git a/src/commands/benchmark-job/summary.ts b/src/commands/benchmark-job/summary.ts index a144e3e..814e622 100644 --- a/src/commands/benchmark-job/summary.ts +++ b/src/commands/benchmark-job/summary.ts @@ -151,7 +151,11 @@ function printResultsTable(job: BenchmarkJob, extended: boolean = false): void { const outcomes = job.benchmark_outcomes || []; if (outcomes.length === 0) { - console.log(chalk.yellow("No benchmark outcomes found")); + if (job.failure_reason) { + console.log(chalk.red(`Job failed: ${job.failure_reason}`)); + } else { + console.log(chalk.yellow("No benchmark outcomes found")); + } return; } diff --git a/src/commands/benchmark-job/watch.ts b/src/commands/benchmark-job/watch.ts index fe00578..ea829fb 100644 --- a/src/commands/benchmark-job/watch.ts +++ b/src/commands/benchmark-job/watch.ts @@ -253,7 +253,11 @@ function printResultsTable(job: BenchmarkJob): void { const outcomes = job.benchmark_outcomes || []; if (outcomes.length === 0) { - console.log(chalk.yellow("No benchmark outcomes found")); + if (job.failure_reason) { + console.log(chalk.red(`Job failed: ${job.failure_reason}`)); + } else { + console.log(chalk.yellow("No benchmark outcomes found")); + } return; } @@ -478,7 +482,11 @@ export async function watchBenchmarkJob(id: string) { const totalElapsedStr = formatDuration(Date.now() - jobStartMs); // Show completion message - console.log(chalk.green.bold("Benchmark job completed!")); + if (job.state === "failed") { + console.log(chalk.red.bold("Benchmark job failed.")); + } else { + console.log(chalk.green.bold("Benchmark job completed!")); + } console.log(chalk.dim(`Total time: ${totalElapsedStr}`)); // Show final results (summary only)