fix(build): fix and improve rustc check err msgs

master
Ashley Williams 7 years ago
parent f45322c76b
commit 9d35377cd3
  1. 4
      src/build.rs

@ -19,7 +19,7 @@ pub fn check_rustc_version(step: &Step) -> Result<String, Error> {
if mv < 30 { if mv < 30 {
return Err(Error::RustcVersion { return Err(Error::RustcVersion {
message: format!( message: format!(
"Your version of Rust, '{}', is not supported.", "Your version of Rust, '{}', is not supported. Please install Rust version 1.30.0 or higher.",
mv.to_string() mv.to_string()
), ),
local_minor_version: mv.to_string(), local_minor_version: mv.to_string(),
@ -29,7 +29,7 @@ pub fn check_rustc_version(step: &Step) -> Result<String, Error> {
} }
}, },
None => Err(Error::RustcMissing { None => Err(Error::RustcMissing {
message: "We can't figure out what your Rust version is- which means you might not have Rust ins talled. Please install Rust version 1.30.0 or higher.".to_string(), message: "We can't figure out what your Rust version is- which means you might not have Rust installed. Please install Rust version 1.30.0 or higher.".to_string(),
}), }),
} }
} }

Loading…
Cancel
Save