Skip to content

Commit

Permalink
Use anyhow instead of assert
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed May 19, 2023
1 parent cdf2794 commit 8620892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/re_build_build_info/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn run_command(cmd: &str, args: &[&str]) -> anyhow::Result<String> {
.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),
Expand Down

0 comments on commit 8620892

Please sign in to comment.