From b29c147a5db813f6851104e9c7de3657e3739bdb Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 7 Sep 2023 14:55:52 +1000 Subject: [PATCH] Improve error message when command fails to run --- build/runner/src/run.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/runner/src/run.rs b/build/runner/src/run.rs index 838a7a68c..5b60ab80c 100644 --- a/build/runner/src/run.rs +++ b/build/runner/src/run.rs @@ -83,5 +83,8 @@ fn split_args(args: Vec) -> Vec> { } pub fn run_command(command: &mut Command) { - command.ensure_success().unwrap(); + if let Err(err) = command.ensure_success() { + println!("{}", err); + std::process::exit(1); + } }