We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fd573e commit 09b81deCopy full SHA for 09b81de
crates/cargo-codspeed/src/run.rs
@@ -72,7 +72,17 @@ pub fn run_benches(
72
.status_with_color("Running", bench_name, Color::Yellow)?;
73
std::process::Command::new(bench)
74
.status()
75
- .map_err(|_| anyhow!("failed to execute the benchmark process"))?;
+ .map_err(|_| anyhow!("failed to execute the benchmark process"))
76
+ .and_then(|status| {
77
+ if status.success() {
78
+ Ok(())
79
+ } else {
80
+ Err(anyhow!(
81
+ "failed to execute the benchmark process, exit code: {}",
82
+ status.code().unwrap_or(1)
83
+ ))
84
+ }
85
+ })?;
86
ws.config().shell().status_with_color(
87
"Done",
88
format!("running {}", bench_name),
0 commit comments