Skip to content

Commit 52a2e28

Browse files
committed
Auto merge of #1267 - aidanhs:aphs-better-error-on-rustup.sh, r=alexcrichton
Give a hint of what to do if rustup is installed cc #618 (comment)
2 parents 768f9b8 + bfe162e commit 52a2e28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rustup-cli/self_update.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,9 @@ fn do_pre_install_sanity_checks() -> Result<()> {
441441
warn!("it looks like you have existing rustup.sh metadata");
442442
warn!("rustup cannot be installed while rustup.sh metadata exists");
443443
warn!("delete `{}` to remove rustup.sh", rustup_sh_path.expect("").display());
444+
warn!("or, if you already rustup installed, you can run");
445+
warn!("`rustup self update` and `rustup toolchain list` to upgrade");
446+
warn!("your directory structure");
444447
return Err("cannot install while rustup.sh is installed".into());
445448
}
446449

0 commit comments

Comments
 (0)