rustup
rustup copied to clipboard
When `rustup update` fails, it doesn't return an exit code that indicate failure
Problem
When rustup update
fails, it doesn't return an exit code that indicate failure but instead returns 0.
Steps
- Be in a situation where
rustup update
fails, for example by disabling your network connection - Run
rustup update
- The command returns the exit code 0, or success
Possible Solution(s)
Return an exit code different than 0 in case of failure
Notes
No response
Rustup version
rustup 1.26.0 (2023-05-04)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.72.0 (5680fa18f 2023-08-23)`
Installed toolchains
Not relevant