Skip to content

Commit bfe162e

Browse files
committed
Give a hint of what to do if rustup is installed
1 parent c0ee150 commit bfe162e

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)