Skip to content

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

Closed
@dzamlo

Description

@dzamlo

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions