diff --git a/cli/src/main.rs b/cli/src/main.rs index b6baa59c..2e6c6fb9 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -362,9 +362,12 @@ async fn run_test(test_args: TestArgs) -> anyhow::Result { &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;