Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove error message when override doesn't exist #820
Comments
This comment has been minimized.
This comment has been minimized.
|
Good find. Thank you. |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
Or one could warn about present overrides when uninstalling. |
brson
added
the
enhancement
label
Dec 16, 2016
Diggsey
added this to Error messages & documentation
in Issue Categorisation
May 3, 2017
This comment has been minimized.
This comment has been minimized.
|
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. |
brson
added
enhancement
help wanted
and removed
enhancement
labels
May 12, 2017
brson
changed the title
When removing toolchain, override is not removed
Improve error message when override doesn't exist
May 12, 2017
shiver
referenced this issue
May 19, 2017
Merged
#820 Supress confusing NotADirectory error and show override missing #1128
This comment has been minimized.
This comment has been minimized.
|
I took a quick stab at resolving this. The output should look something like this:
Hopefully that is what you were after. |
est31 commentedNov 18, 2016
Try this:
rustup override add nightly-2016-11-02rustup toolchain remove nightly-2016-11-02rustup showGives output:
It can be fixed by removing the override but I think that should already happen when you do
rustup toolchain remove