Skip to content

Commit

Permalink
log when test command fails (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrankland authored Aug 28, 2024
1 parent 7d7c64a commit 221eed9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,12 @@ async fn run_test(test_args: TestArgs) -> anyhow::Result<i32> {
&codeowners,
)
.await
.unwrap_or(RunResult {
exit_code: EXIT_FAILURE,
failures: Vec::new(),
.unwrap_or_else(|e| {
log::error!("Test command failed to run: {}", e);
RunResult {
exit_code: EXIT_FAILURE,
failures: Vec::new(),
}
});

let run_exit_code = run_result.exit_code;
Expand Down

0 comments on commit 221eed9

Please sign in to comment.