Skip to content

Commit

Permalink
cli: fix GLIBC version requirement hardcoded in error message (micros…
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 authored Jan 16, 2024
1 parent 7b3a15c commit f58d7ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/src/util/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ pub enum CodeError {

#[error("platform not currently supported: {0}")]
UnsupportedPlatform(String),
#[error("This machine not meet {name}'s prerequisites, expected either...: {bullets}")]
#[error("This machine does not meet {name}'s prerequisites, expected either...: {bullets}")]
PrerequisitesFailed { name: &'static str, bullets: String },
#[error("failed to spawn process: {0:?}")]
ProcessSpawnFailed(std::io::Error),
Expand Down
7 changes: 4 additions & 3 deletions cli/src/util/prereqs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ async fn check_glibc_version() -> Result<(), String> {
Ok(())
} else {
Err(format!(
"find GLIBC >= 2.17 (but found {} instead) for GNU environments",
v
"find GLIBC >= {} (but found {} instead) for GNU environments",
*MIN_LDD_VERSION, v
))
};
}
Expand Down Expand Up @@ -201,7 +201,8 @@ fn check_for_sufficient_glibcxx_versions(contents: Vec<u8>) -> Result<(), String

if !all_versions.iter().any(|v| &*MIN_CXX_VERSION >= v) {
return Err(format!(
"find GLIBCXX >= 3.4.18 (but found {} instead) for GNU environments",
"find GLIBCXX >= {} (but found {} instead) for GNU environments",
*MIN_CXX_VERSION,
all_versions
.iter()
.map(String::from)
Expand Down

0 comments on commit f58d7ff

Please sign in to comment.