GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Route final errors through the printer by charliermarsh · Pull Request #20114 · astral-sh/uv Conversation
|
uv test inventory changesThis PR changes the tests when compared with the latest
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This has some interactions with the miette removal work, I'll see if they're problematic. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| impl From<ExitStatus> for ExitCode { | ||
| fn from(status: ExitStatus) -> Self { | ||
| match status { | ||
| ExitStatus::Success => Self::from(0), | ||
| ExitStatus::Failure => Self::from(1), | ||
| ExitStatus::Error => Self::from(2), | ||
| ExitStatus::External(code) => Self::from(code), | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Why does this go away?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| .expect("writing to stderr should not fail"); | ||
|
|
||
| ExitStatus::Error.into() | ||
| ExitCode::from(2) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I am a bit sad we can't reuse our constant definition here
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but no idea about the miette interactions so you might want to wait for Zanie before merging
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Keep `ExitStatus` code-only and represent propagated command errors explicitly as `UvError::User` or `UvError::Unexpected`. Command handlers classify and propagate their errors; the entrypoint renders user errors as a single line with exit code 1 and renders unclassified error chains with exit code 2. This preserves the existing default text and exit codes while providing a behavior-focused alternative to the error-carrying `ExitStatus` introduced in #20114. The stacked follow-up #20163 routes this centralized rendering through `Printer` and defines the resulting `-q` and `-qq` behavior. Part of #17110.
|
I'm going to go with my approach instead, though time may tell that it's not any better :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sounds great, thank you! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.