Skip to content

Commit 4913bf8

Browse files
committed
Fix incorrect string formatting in xtask error message
1 parent 4e41c84 commit 4913bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn cargo(args: &str, cb: &dyn Fn(&mut Command)) -> Result<()> {
7474
cb(&mut cmd);
7575
let status = cmd.status().expect("cargo should be installed");
7676
if !status.success() {
77-
return Err("command `cargo {args}` failed".into());
77+
return Err(format!("command `cargo {args}` failed").into());
7878
}
7979
Ok(())
8080
}

0 commit comments

Comments
 (0)