Give an error if any of the wrappers can't find cargo, rustc or rustdoc

Fixes #1364
This commit is contained in:
bjorn3 2023-03-21 13:41:28 +00:00
parent 74e865904c
commit 76a1cfb0e6
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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