From 221eed98e96f834587abc05f0390cdd64e1e6586 Mon Sep 17 00:00:00 2001 From: Dylan Frankland Date: Wed, 28 Aug 2024 11:06:36 -0700 Subject: [PATCH] log when test command fails (#89) --- cli/src/main.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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;