Uh oh!
There was an error while loading. Please reload this page.
fix(rustup-mode): return ExitCode(1) when update() fails - #3952
Conversation
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
This seems okay. Personally I feel like use of the custom ExitCode is a bad abstraction. One idea I've played with is that we should change types to be Result<T, Option<E>>, where the Some represents an error that should be yielded by the top-level caller while None means the error has already been reported. (We then report ExitCode::FAILURE if the Result is Err.)
Uh oh!
There was an error while loading. Please reload this page.
@djc Indeed, in other projects that I've worked with my principle is that we should never expose the exit code with the single exception of the main module, where some But that kind of change is clearly out of the scope of this PR... |
5d54796 to
cecc7e0CompareUh oh!
There was an error while loading. Please reload this page.
Closes#3476, verified via local testing.