Skip to content

Commit

Permalink
Merge pull request #4 from acheroncrypto/improve-msrv-error
Browse files Browse the repository at this point in the history
[SOL] Improve error message for MSRV
  • Loading branch information
dmakarov committed Apr 2, 2024
2 parents 827d7a4 + fdf0420 commit d3db0b5
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 @@ -521,7 +521,10 @@ pub fn create_bcx<'a, 'cfg>(

anyhow::bail!(
"package `{}` cannot be built because it requires rustc {} or newer, \
while the currently active rustc version is {}\n{}",
while the currently active rustc version is {}\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{}",
unit.pkg,
version,
current_version,
Expand Down

0 comments on commit d3db0b5

Please sign in to comment.