rustup icon indicating copy to clipboard operation
rustup copied to clipboard

When `rustup update` fails, it doesn't return an exit code that indicate failure

Open dzamlo opened this issue 1 year ago • 0 comments

Problem

When rustup update fails, it doesn't return an exit code that indicate failure but instead returns 0.

Steps

  1. Be in a situation where rustup update fails, for example by disabling your network connection
  2. Run rustup update
  3. 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

dzamlo avatar Sep 09 '23 16:09 dzamlo