Skip to content

Commit 1aee38b

Browse files
committed
Print error context when a benchmark fails to run
Before: ``` collector error: Failed to benchmark 'stm32f4', recorded: failed to obtain pkgid in '"/tmp/.tmpLF63db"' ``` After: ``` collector error: Failed to benchmark 'stm32f4', recorded: failed to obtain pkgid in '"/tmp/.tmpAmktlm"': expected success, got exit code: 101 stderr=error: a Cargo.lock must exist for this command stdout= ```
1 parent 39f0244 commit 1aee38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ fn bench(
255255
benchmark.measure(&mut processor, build_kinds, run_kinds, compiler, iterations);
256256
if let Err(s) = result {
257257
eprintln!(
258-
"collector error: Failed to benchmark '{}', recorded: {}",
258+
"collector error: Failed to benchmark '{}', recorded: {:#}",
259259
benchmark.name, s
260260
);
261261
errors.incr();

0 commit comments

Comments
 (0)