Skip to content

Commit

Permalink
Display the inner query script error when skipping bad intepreters
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jan 17, 2025
1 parent afce00b commit 89e11d0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/uv-python/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,15 +720,21 @@ impl Error {
InterpreterError::Encode(_)
| InterpreterError::Io(_)
| InterpreterError::SpawnFailed { .. } => true,
InterpreterError::QueryScript { path, .. }
| InterpreterError::UnexpectedResponse { path, .. }
InterpreterError::UnexpectedResponse { path, .. }
| InterpreterError::StatusCode { path, .. } => {
debug!(
"Skipping bad interpreter at {} from {source}: {err}",
path.display()
);
false
}
InterpreterError::QueryScript { path, err } => {
debug!(
"Skipping bad interpreter at {} from {source}: {err}",
path.display()
);
false
}
InterpreterError::NotFound(path) => {
// If the interpreter is from an active, valid virtual environment, we should
// fail because it's broken
Expand Down

0 comments on commit 89e11d0

Please sign in to comment.