diff --git a/xtask/src/run.rs b/xtask/src/run.rs index 12b4d38..109515e 100644 --- a/xtask/src/run.rs +++ b/xtask/src/run.rs @@ -63,6 +63,8 @@ pub fn run(opts: Options) -> Result<(), anyhow::Error> { .status() .expect("failed to run the command"); - assert!(status.success()); + if !status.success() { + anyhow::bail!("Failed to run `{}`", args.join(" ")); + } Ok(()) }