From 404a20aa97ed75b60ce755a8d44378c19003651e Mon Sep 17 00:00:00 2001 From: Adrien Cacciaguerra Date: Tue, 21 May 2024 16:14:32 -0400 Subject: [PATCH] fix(cargo-codspeed): display run bench command error --- crates/cargo-codspeed/src/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cargo-codspeed/src/run.rs b/crates/cargo-codspeed/src/run.rs index ee21e7f..51947e9 100644 --- a/crates/cargo-codspeed/src/run.rs +++ b/crates/cargo-codspeed/src/run.rs @@ -95,7 +95,7 @@ pub fn run_benches( .env("CODSPEED_CARGO_WORKSPACE_ROOT", workspace_root.as_ref()) .current_dir(&bench.working_directory) .status() - .map_err(|_| anyhow!("failed to execute the benchmark process")) + .map_err(|e| anyhow!("failed to execute the benchmark process: {}", e)) .and_then(|status| { if status.success() { Ok(())