Skip to content

Commit b647a3f

Browse files
committed
fix: exit status check
1 parent d3f3798 commit b647a3f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/run/runner/wall_time/executor.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ impl Executor for WallTimeExecutor {
7373
run_command_with_log_pipe(cmd).await
7474
};
7575

76-
if let Err(error) =
77-
status.map_err(|e| anyhow!("failed to execute the benchmark process. {}", e))
78-
{
79-
bail!("failed to execute the benchmark process: {}", error);
76+
let status =
77+
status.map_err(|e| anyhow!("failed to execute the benchmark process. {}", e))?;
78+
debug!("cmd exit status: {:?}", status);
79+
80+
if !status.success() {
81+
bail!("failed to execute the benchmark process: {}", status);
8082
}
8183

8284
Ok(())

0 commit comments

Comments
 (0)