File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -385,8 +385,10 @@ fn check_existence_of_rustc_or_cargo_in_path(no_prompt: bool) -> Result<()> {
385
385
if let Err ( path) = rustc_or_cargo_exists_in_path ( ) {
386
386
err ! ( "it looks like you have an existing installation of Rust at:" ) ;
387
387
err ! ( "{}" , path) ;
388
- err ! ( "rustup cannot be installed alongside Rust. Please uninstall first" ) ;
389
- err ! ( "if this is what you want, restart the installation with `-y'" ) ;
388
+ err ! ( "rustup should not be installed alongside Rust. Please uninstall your existing Rust first." ) ;
389
+ err ! ( "Otherwise you may have confusion unless you are careful with your PATH" ) ;
390
+ err ! ( "If you are sure that you want both rustup and your already installed Rust" ) ;
391
+ err ! ( "then please restart the installation and pass `-y' to bypass this check." ) ;
390
392
Err ( "cannot install while Rust is installed" . into ( ) )
391
393
} else {
392
394
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -619,7 +619,7 @@ fn install_stops_if_rustc_exists() {
619
619
. contains( "it looks like you have an existing installation of Rust at:" ) ) ;
620
620
assert ! ( out
621
621
. stderr
622
- . contains( "if this is what you want, restart the installation with `-y'" ) ) ;
622
+ . contains( "restart the installation and pass `-y'" ) ) ;
623
623
} ) ;
624
624
}
625
625
@@ -651,7 +651,7 @@ fn install_stops_if_cargo_exists() {
651
651
. contains( "it looks like you have an existing installation of Rust at:" ) ) ;
652
652
assert ! ( out
653
653
. stderr
654
- . contains( "if this is what you want, restart the installation with `-y'" ) ) ;
654
+ . contains( "restart the installation and pass `-y'" ) ) ;
655
655
} ) ;
656
656
}
657
657
You can’t perform that action at this time.
0 commit comments