fail with descriptive message

Co-authored-by: Michal Rostecki <vadorovsky@gmail.com>
pull/77/head
Dmitry Savintsev 2 years ago committed by Dmitry Savintsev
parent 255c59cf98
commit 7008f570b0

@ -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(())
}

Loading…
Cancel
Save