Skip to content

Just check rustup for non-success when running 'which --toolchain' #1362

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

Closed
wants to merge 1 commit into from

Conversation

rylev
Copy link
Member

@rylev rylev commented Jul 20, 2022

$ rustup --version
rustup 1.25.1 (bb60b1e89 2022-07-12)
$ rustup which rustc --toolchain foo
error: toolchain 'foo' is not installed
$ echo $?
1 # Failure now returns 1 and not 101

@rylev rylev requested a review from Mark-Simulacrum July 20, 2022 16:21
@rylev
Copy link
Member Author

rylev commented Jul 20, 2022

lul - duplicate of #1361

@rylev rylev closed this Jul 20, 2022
@Kobzol Kobzol mentioned this pull request Jul 21, 2022
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.

1 participant