Skip to content

Commit

Permalink
[SOL] Improve error message for MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored and LucasSte committed Jul 22, 2024
1 parent b09fa91 commit ab11ba6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cargo/ops/cargo_compile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,10 @@ pub fn create_bcx<'a, 'gctx>(

let plural = if incompatible.len() == 1 { "" } else { "s" };
let mut message = format!(
"rustc {rustc_version} is not supported by the following package{plural}:\n"
"rustc {rustc_version} is not supported by the following package{plural}:\n
Note that this is the rustc version that ships with Solana tools and \
not your system's rustc version. Use `solana-install update` or head \
over to https://docs.solanalabs.com/cli/install to install a newer version.\n",
);
incompatible.sort_by_key(|(unit, _)| (unit.pkg.name(), unit.pkg.version()));
for (unit, msrv) in incompatible {
Expand Down

0 comments on commit ab11ba6

Please sign in to comment.