Skip to content

Give correct error message if user tries to install an unavailable toolchain#1380

Merged
Diggsey merged 1 commit intorust-lang:masterfrom
emielwiedijk:unavailable-toolchain
May 27, 2018
Merged

Give correct error message if user tries to install an unavailable toolchain#1380
Diggsey merged 1 commit intorust-lang:masterfrom
emielwiedijk:unavailable-toolchain

Conversation

@emielwiedijk
Copy link
Copy Markdown
Contributor

@emielwiedijk emielwiedijk commented Mar 17, 2018

Currently if a user runs rustup install unavailable-toolchain, the error message is: error: toolchain 'unavailable-toolchain' is not installed. This is error message is weird, since the user runs rustup to install the toolchain. This commit copies the "InvalidToolchainName error from rustup-dist, and configures rustup install to use this error.

Currently if a user runs `rustup install unavailable-toolchain`, the
error message is: `error: toolchain 'unavailable-toolchain' is not
installed`. This is error message is weird, since the user runs rustup
to install the toolchain. This commit copies the "InvalidToolchainName"
error from rustup-dist, and configures rustup install to use this error.
@Diggsey
Copy link
Copy Markdown
Contributor

Diggsey commented May 27, 2018

Thanks for the PR!

@Diggsey Diggsey merged commit 62c36af into rust-lang:master May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants