Repository navigation
Conversation
| ScriptInterpreter::Interpreter(interpreter) => interpreter, | ||
| ScriptInterpreter::Environment(environment) => environment.into_interpreter(), |
There was a problem hiding this comment.
[P3] Reuse ScriptInterpreter::into_interpreter
With error handling moved to ?, this match duplicates ScriptInterpreter::into_interpreter, already used by script discovery callers in add.rs, audit.rs, and other commands. Replace the match with .await.map_err(UvError::user)?.into_interpreter() so variant-to-interpreter conversion remains owned by the discovery type rather than repeated in this command.
Merging this PR will not alter performance
|
2924c9d to
e206e71
Compare
f1d6efd to
13ca1d9
Compare
|
Promoted to #22549. |
uv python find --scriptprints only the top-level discovery error and hides it under-q. Return these failures to the final diagnostic renderer so their causes and hints remain visible, while keeping exit status 1 and-qqsilence.