-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve error message when override doesn't exist #820
Comments
Good find. Thank you. |
Hm, after thinking about this, I'm not sure that removing toolchains should remove overrides. Just because the toolchain doesn't exist doesn't invalidate the need for that toolchain to build a project. For now I'd prefer to just have better error messages here. |
Hm, this error basic error is not horrible, but is obscured by the 'cause', which is irrelevant here. A better error though would indicate that an override requires this toolchain but it is not installed, install it with ... etc. |
Or one could warn about present overrides when uninstalling. |
I think I prefer to solve this by simply making a better error message, like:
And getting rid of the causal error It would be even better if rustup suggested how to remove the override, but the current UI doesn't have a way to do that. |
I took a quick stab at resolving this. The output should look something like this:
Hopefully that is what you were after. |
#820 Supress confusing NotADirectory error and show override missing This is my attempt at tackling issue #820. Hopefully I interpreted the original request correctly and this is what you were looking for. It is my first time dealing with error_chain, so not 100% sure I did it right. Any suggestions you might have to improve the submission would be great. Thanks!
Can this be closed? @kinnison |
Indeed, |
Try this:
rustup override add nightly-2016-11-02
rustup toolchain remove nightly-2016-11-02
rustup show
Gives output:
It can be fixed by removing the override but I think that should already happen when you do
rustup toolchain remove
The text was updated successfully, but these errors were encountered: