diff --git a/crates/re_build_build_info/src/lib.rs b/crates/re_build_build_info/src/lib.rs index 374b74a45949b..d8c03d3b79be6 100644 --- a/crates/re_build_build_info/src/lib.rs +++ b/crates/re_build_build_info/src/lib.rs @@ -100,7 +100,7 @@ fn run_command(cmd: &str, args: &[&str]) -> anyhow::Result { .output() .with_context(|| format!("running '{cmd}'"))?; - assert!( + anyhow::ensure!( output.status.success(), "Failed to run '{cmd} {args:?}':\n{}\n{}\n", String::from_utf8_lossy(&output.stdout),