Skip to content

Commit

Permalink
Give an error if any of the wrappers can't find cargo, rustc or rustdoc
Browse files Browse the repository at this point in the history
Fixes #1364
  • Loading branch information
bjorn3 committed Mar 21, 2023
1 parent 74e8659 commit 76a1cfb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/cargo-clif.rs
Expand Up @@ -64,7 +64,7 @@ fn main() {
};

#[cfg(unix)]
Command::new("cargo").args(args).exec();
panic!("Failed to spawn cargo: {}", Command::new("cargo").args(args).exec());

#[cfg(not(unix))]
std::process::exit(
Expand Down
2 changes: 1 addition & 1 deletion scripts/rustc-clif.rs
Expand Up @@ -30,7 +30,7 @@ fn main() {
env::set_var("RUSTUP_TOOLCHAIN", env!("TOOLCHAIN_NAME"));

#[cfg(unix)]
Command::new("rustc").args(args).exec();
panic!("Failed to spawn rustc: {}", Command::new("rustc").args(args).exec());

#[cfg(not(unix))]
std::process::exit(
Expand Down
2 changes: 1 addition & 1 deletion scripts/rustdoc-clif.rs
Expand Up @@ -30,7 +30,7 @@ fn main() {
env::set_var("RUSTUP_TOOLCHAIN", env!("TOOLCHAIN_NAME"));

#[cfg(unix)]
Command::new("rustdoc").args(args).exec();
panic!("Failed to spawn rustdoc: {}", Command::new("rustdoc").args(args).exec());

#[cfg(not(unix))]
std::process::exit(
Expand Down

0 comments on commit 76a1cfb

Please sign in to comment.