mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-28 18:54:10 +00:00
Surface request stream errors in the resolver (#107)
Closes https://github.com/astral-sh/puffin/issues/105.
This commit is contained in:
parent
7e8ffeb2df
commit
bae52d5edd
3 changed files with 72 additions and 49 deletions
|
|
@ -10,12 +10,18 @@ pub enum ResolveError {
|
|||
#[error("Failed to find a version of {0} that satisfies the requirement")]
|
||||
NotFound(Requirement),
|
||||
|
||||
#[error("The request stream terminated unexpectedly")]
|
||||
StreamTermination,
|
||||
|
||||
#[error(transparent)]
|
||||
Client(#[from] puffin_client::PypiClientError),
|
||||
|
||||
#[error(transparent)]
|
||||
TrySend(#[from] futures::channel::mpsc::SendError),
|
||||
|
||||
#[error(transparent)]
|
||||
Join(#[from] tokio::task::JoinError),
|
||||
|
||||
#[error(transparent)]
|
||||
PubGrub(#[from] pubgrub::error::PubGrubError<PubGrubPackage, PubGrubVersion>),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue